logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$10
Moving wordpress to a new server

Hi Guys

I need some reassurance that I'm doing the right thing as i have run into some problems whilst trying to move my wordpress website from Go Daddy To Bluehost.

I have up to date back up of wp-content folder & an .sql.gz back up of the database

I have done the process in the wrong order I think so it has confused me. This is what I am trying to do

I have created a hosting account at bluehost and installed a fresh version of Wordpress. My goal was to upload the back up of the wp-content folder and then import the back up of the database via phpmyadmin.

As the domain is now going to be in the root i.e. mydomain.com and not mydomian.com/blog like it was on the old server. I know I have to update the database to reflect this. Which i have done by editing the wp-options (site url & home) within phpmyadmin again.

My confusion comes from whether the wp-config.php file should be edited to the new database details or the old database details (the one i imported).

If it just the tables that i have impoprted I would use the new database name & password woulnd't i?

Then it should all work fine, but I'm gettin a blank white screen.

Can anyone tell me the fault in my process and tell me how I should be doing it.

Note the nameservers have now propogated to the new host so I cannot access the old wordpress installation via a browser only via ftp.

I have read the instructions in the WP codex but they confused me even more.

thanks for any help you can give me

Steve

This question has been answered.

Steve Watson | 07/10/10 at 4:08am Edit


(8) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    07/10/10
    4:12am
    Svilen Popov says:

    Change your wp-config.php in the old site to point to the database on the new site - host, database, user, password

    • 07/10/10 4:14am

      Svilen Popov says:

      http://codex.wordpress.org/Moving_WordPress

    • 07/10/10 4:15am

      Svilen Popov says:

      also run this SQL queries:

      UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com');


      UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com');

  • avatar
    Last edited:
    07/10/10
    4:14am
    Agent Wordpress says:

    See this,

    http://yoast.com/move-wordpress-blog-domain-10-steps/

    It has all the steps you need. You want to move from sitename.com/blog to sitename.com so basically you are moving to a 'new' domain. The page above also describes the changes you have to make in wp-config.php file. I am here so if you still have any doubt, just leave a comment and I'll get back to you.

    Previous versions of this answer: 07/10/10 at 4:14am

  • avatar
    Last edited:
    07/10/10
    4:16am
    Monster Coder says:

    Hello,
    You better copy the whole blog directory contents to the new server. Then copy the database and restore using phpMyAdmin as you planned and update the siteurl and home.
    After that update the wp-config.php in the new server.

    Then you upgrade the blog to latest version on your new server!

  • avatar
    Last edited:
    07/10/10
    4:28am
    Ehthisham tk says:

    Also do this
    open your sql file in any editor and press Ctrl +F (find) olddomain and replace all those with the newdomain.
    >>you better to turn off all the plugins before moving

  • avatar
    Last edited:
    07/11/10
    1:18pm
    Rashad Aliyev says:

    May I help you?



    I'm glad to help you!

    Previous versions of this answer: 07/11/10 at 1:18pm

  • avatar
    Last edited:
    07/10/10
    4:40am
    Jignesh Patel says:

    Hello,

    On the old server, disable all plugins. Take a backup of whole wordpress directory except the plugins.

    Upload the whole backedup wordpress directory to new server (You have already done i guess)

    Now make sure, you dont run the blog on new server without setting DB & wp-options in DB.

    Then via phpMyAdmin set the db via your .sql

    Then update wp-options in DB for site-url & home

    Update the wp-config.

    Then open the blog admin (Make sure you don't open front end) on new server. If all goes well, upload all the plugins one by one & check & make them active one by one.

  • avatar
    Last edited:
    07/10/10
    5:05am
    Nile Flores says:

    GoDaddy to Bluehost....ugh... why!?!?! Both suck as webhosts. You are better about with HostGator or WordPress Hosting. Above one of the answers are the best (the first one for moving), but I really believe BlueHost is a terrible host. I have a dedicated servier with Host Gator and I have a lot of clients moving frantically from BlueHost.

    When you move to a new webhost as a shared or reseller account holder, you need to ask if the server is geared to support WordPress. Why? -Because some webhosts do not offer opening up the php mod rewrite as well as other features that are necessary for WordPress, and even for those who eventually install the BuddyPress plugin.

    Previous versions of this answer: 07/10/10 at 5:05am | 07/10/10 at 5:05am

  • avatar
    Last edited:
    07/10/10
    7:33am
    Kazi Shaiduzzaman says:

    Yes you can.

    You should use new config.php as here some up-gradation done. On new config.php you may check the dbname or others if its not ok.

    Now you will export selected tables from old host as you already have a installed WP. so you will omit wp_users and wp_usermeta. for wp_comments (if not required then exclude it also as iit may cause size bigger by spam comments) you can remove all unapproved comments it may save lot of space by just a sql command.

    Now You need to edit on your exported SQL file which is most important. Please open it any light weighted editor like wordpad or others if the sql file large size, then you need to replace all all domainname.com/blog(without trailing slash) with the just domainname.com


    Now go to domainname.com/wp-admin to check


    Reply me if more required.
    Thanks

    Previous versions of this answer: 07/10/10 at 7:32am | 07/10/10 at 7:33am

This question has expired.





Current status of this question: Completed



Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.