1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Transferring my Wordpress site to new host.

Discussion in 'Blogging' started by cooldude1234, Nov 17, 2009.

  1. cooldude1234

    cooldude1234 Junior Member

    Joined:
    Mar 27, 2009
    Messages:
    102
    Likes Received:
    13
    Hello Guys,

    I am having problems with my current host and i want to transfer my wordpress site to new host. I took the backup of my wordpress database using a plugin wp-backup.

    Now i want to upload it on the new host so here is what i want to know.

    My domain will remain the same. Now, when i restore the backup on the new host, do i need to install wordpress first. And then using phpMyAdmin, i can import the database to the newly created database.

    OR

    I don't need to install wordpress, i can directly import my database using phpMyAdmin and the backup will be done.

    Please do reply as to what am i supposed to do.

    Any other precautions or help will be appreciated.

    Thanking you
     
  2. sidddd

    sidddd Power Member

    Joined:
    May 15, 2008
    Messages:
    749
    Likes Received:
    460
    Sorry I am a bit sleepy but I can't sleep without answering this question as well..

    let me tell you.. the backup won't save any images.. so do this again

    on OLD host

    1. Backup wp-content which has plugins..theme and most necessarily UPLOAD folders or wherever your images are located..
    2. Use ur plugin (wp backup) and backup the database..

    on NEW host

    1. Install wordpress freshly..
    2. Import the wp backup file using phpmyadmin..
    3. Restore/replace wp-content files such as plugin n themes n uploads folder..

    Point the domain to the newhost and dance like an angel :D
     
    • Thanks Thanks x 1
  3. cooldude1234

    cooldude1234 Junior Member

    Joined:
    Mar 27, 2009
    Messages:
    102
    Likes Received:
    13
    I am taking backup of wp-content and it asks me everytime that do you want to overwrite this file: pclzip.lib.php

    It asks me again and again as to what to do?
     
  4. bu11d0g

    bu11d0g Guest

    The way i move wp to new hosts ect is this:

    Download your complete website with ftp to a folder on your computer, goto phpmyadmin adn download your wp database (i NEVER use wp backup because it sucks ass) Then when your nameservers have updated to new host, upload your wp site then upload your wp database through phpmyadmin.
    Its the simplest thing to do and shouldnt take too long, everything will be EXACTLY the same on your new host that was on old host, no need to reactivate plugins or anything, its all done.

    Mark

    EDIT# Make sure you update your wp-config.php file to reflect your new host username and so on
     
    • Thanks Thanks x 1
  5. pavan

    pavan Elite Member

    Joined:
    Mar 30, 2008
    Messages:
    1,603
    Likes Received:
    432
    this would be the best way
    and one more thing
    u need to modify
    wp-config.php as per new host config
    download db and all files
    upload them to new host ( no need of new wordpress installation)
    import db
    modify wp-config.php as per new db settings
     
  6. cooldude1234

    cooldude1234 Junior Member

    Joined:
    Mar 27, 2009
    Messages:
    102
    Likes Received:
    13
    I only need to download the public_html folder, right?

    Or i should download all
     
  7. bu11d0g

    bu11d0g Guest

    Go into your public_html folder and download everything in there, then reupload it mate.
     
  8. cooldude1234

    cooldude1234 Junior Member

    Joined:
    Mar 27, 2009
    Messages:
    102
    Likes Received:
    13
    Thanks for your help.

    Currently downloading public_html

    It is 11mb. Will take time

    Will let you all know if any problem occurs
     
  9. wojos

    wojos Registered Member

    Joined:
    Sep 26, 2009
    Messages:
    56
    Likes Received:
    55
    Location:
    Poland
    Good option is to archive public_html using user panel and download archive. Later, as users before me said, take backup of database. Upload and unpack archive to new hosting, import database and edit config files for new server. Will work.
    On the other hand I saw somewhere special WP plugin for all this taskas. Just try to g00gle for it and shoulde be fine :)
     
  10. elpadrino23

    elpadrino23 Registered Member

    Joined:
    Jan 4, 2009
    Messages:
    89
    Likes Received:
    21
    Backup your Wordpress database using phpMyAdmin

    First thing first, make a backup of your database using phpMyAdmin. Once you have successfully logged into phpMyAdmin (cPanel -> MySQL -> phpMyAdmin) , click on the name of the database which contains your wordpress blog. Then click on Export in the main navigation area, within the export screen you must complete the following steps:
    click on 'select all' and ‘SQL' from the Export menu
    select ‘add Drop Table', ‘add Auto_Increment value' and ‘enclosure table and field names with blackquotes' from the Structure menu
    select ‘Complete inserts' and ‘Use hexadecimal for binary files' from Data
    you can leave all the other values at their defaults
    Once all those settings are selected you simply click on 'save as file', this will download a filenamed wordpress.sql to your desktop. And that is that. You have successfully backed up your database.

    If you don't have PHPmyadmin installed on your hosting account, you can use mySQLDump from a SSH terminal.



    Download/Upload all your Wordpress files using FTP.


    You will need to download ALL your files from your old host and upload them to your new host. This includes files from your themes folder and plugins folder. Make sure you also download any folders which were referenced outside of your blog folder. For example I use a seperate folder called ‘images' which is located outside of ‘blog'. If I didn't copy and upload this folder to my new host I would have a lot of broken links to images within my blogpost. This is not a pretty sight.

    The FTP client I use is Filezilla. By default Filezilla does not display your .htaccess file, probably for security reasons but I'm not too sure. To ensure that your .htaccess file is included in your download you must click on ‘View' and then enable ‘Show Hidden Files'. If you neglect to upload your .htaccess file then your permalinks will get screwed up. That is of course if you are using permalinks.

    Please note that you should not take this oppurtunity to update to a newer version of Wordpress. Your database may not sync' as a result. Complete your migration before you consider upgrading.

    Edit wp-config.php and create a new Wordpress database.

    Okay, so we are nearly there. You must now edit wp-config.php to include the database settings of your new database. ( How to create a MySQL database )


    Once you have edited the file with your new database settings, upload it to the root of your blog folder.

    So now everything is set, expect that your new database does not contain any database tables.

    Import your Wordpress blog to your new Database.

    You can use either phpMyAdmin to import your database or you can use BigDump. BigDump is the preferred option if you have a large database (10mbs or more). There is a step by step guide on how to use BigDump on their website.

    Once you have logged in, you can choose between two methods to complete the import. You can click on ‘SQL' and run a query or you can use the ‘Import' link to upload your wordpress.sql file into your database. I recommend using the former as the query can take some time and can sometimes crash your browser. Using the import feature seems to be a lot less strenuous on the browser.