Tokyo Damage Report

I need some .php tech help?

Sorry for a non-Japan post. Right now I'm using Bluehost for my server. They are a rather sorry bunch. My web-host contract with them expires in a couple of weeks. I want to move my wordpress site to phpwebhosting.com.

But the problem is,  this blog is wordpress, which is a .php thing. Which everyone tells me is way more complicated than regular .html pages.

Can I just copy all the current files to the new server? Or do I need to "configure"  things or "set up the server"? Which I totally do not know how to do.

If anyone reading has ever moved a .php site to a new server or set up a server to run wordpress, please get in touch, a'ight?

 

Thanks!

8 comments

8 Comments so far

  1. David April 9th, 2010 6:53 am

    You probably don't have to worry too much about the .php stuff — your new webhost will have it set up to show php without any configuration. The thing you'll have to do is migrate your database. All your blog posts are stored in a database, so you'll have to export those posts and then import them on your new webhost. I think WordPress might have a feature that makes that easy for you — I'd have to check. Other than that, you should be able to simply copy over your files to the new host and maybe fiddle with a few settings. If you need some help, let me know. I've set up a couple of WordPress sites myself.

  2. Tom April 9th, 2010 11:58 am

    What David said, although if you have ssh access to your server then it is probably better to use the mysqldump command directly (http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html), or your host my provide you with phpmyadmin (http://www.phpmyadmin.net/home_page/index.php – I wouldn’t bother setting it up if you haven’t got it already)

  3. admin April 9th, 2010 4:32 pm

    @tom and david: thanks for your help. I made a backup (using FTP) of all the files on the site – to my desktop. Then I went into my cpanel (at bluehost) and used the phpmyadmin to backup my databases. I assumed phpmyadmin would make a copy of all the files, but instead it just copied 24 wordpress databaeses into one giant .sql file!

    My question for you NOW is this: are the databases in the .sql file ALSO included in the damn “whole site backup” I made? And if so, do I even need the .sql file?

    Thanks again!

  4. David April 9th, 2010 4:39 pm

    You'll need both the "whole site backup" and the .sql file. The .sql file will contain all your databases and post data. The "site backup" contains the code that displays the data in your database. So in theory, if you copy over the files and then run the .sql file on the new database, you should be good. I have a feeling there might be some user permission issues — you should have a database username and password that matches your DB user on your old machine. Also, there might be permission issues with the files you copy over to the new site as well. I'm sure WordPress will kindly provide all sorts of error messages if your permissions aren't correct.

  5. admin April 9th, 2010 5:05 pm

    http://codex.wordpress.org/Moving_WordPress
    This makes it sound like I can just upload all the files as-is. Is that too good to be true?

  6. David April 9th, 2010 5:39 pm

    Well, it looks like you should follow the steps in Section 3 of that document, since you'll be moving to a new server. It still makes you do a database backup and restore. I don't think there's any getting around that step :)

  7. admin April 9th, 2010 9:31 pm

    I don’t know what database backup and restore means. I did the thing with phpmyadmin. Is that a database backup? If so, I did it. How do i get the resulting .php file onto the new server?

    Also the Section 3 of that wordpress article keeps talking about “change the url to the new server’s url” . . . .but i’m keeping the hellodamage url on the new server. So what the fuck?

    THanks again for your help.

  8. Tom April 9th, 2010 11:16 pm

    Shouldn’t the database backup have a .sql extension? Does the file contain commands like CREATE DATABASE and INSERT INTO etc. in it?

    Do you have phpmyadmin on your new host? If you have then go to the SQL tab and then select the file you backed up the database to. If you don’t need use the command line mysql –user=(your root user) –password=(your password) < thesqlfilethatyoucreated.sql

Leave a reply

Mexico