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

How do I transfer a WP site to a new hosting account?

Discussion in 'Web Hosting' started by SpaceAge, Nov 18, 2011.

  1. SpaceAge

    SpaceAge Newbie

    Joined:
    Dec 11, 2010
    Messages:
    48
    Likes Received:
    5
    I've recently been faced with this challenge of transferring a WP site I purchased from the existing hosting account to my host. The old owner has sent me the zipped backup files & the database files (i.e. 2 compressed files).

    Unfortunately, my hosts (Hostable) are proving to be complete morons (excuse my french), & I am left without any resource/solution to this problem.

    Any advice on this will be greatly appreciated.

    Thanks!

    PS. I apologise in advance if this is not the correct section to post this query.
     
  2. LakeForest

    LakeForest Supreme Member

    Joined:
    Nov 11, 2009
    Messages:
    1,269
    Likes Received:
    1,802
    Location:
    Location Location
    Try to find another hosting company that will assist in migrating your site to their servers. I know you said your current host is a moron, and that in itself is dangerous to trust your online presence to, so seriously consider dropping unhelpful/uncommunicative hosting before it becomes more of a liability than asset.
     
  3. SpaceAge

    SpaceAge Newbie

    Joined:
    Dec 11, 2010
    Messages:
    48
    Likes Received:
    5
    That is certainly under consideration, but for the time being I need a solution to this.

     
  4. backlinkseo

    backlinkseo Junior Member

    Joined:
    Jul 19, 2011
    Messages:
    125
    Likes Received:
    9
    Occupation:
    Founder Of Designfo India
    Location:
    www.livewebsolution.com
    Home Page:
    can i help you?
     
  5. cro-mag

    cro-mag Power Member

    Joined:
    Nov 23, 2010
    Messages:
    544
    Likes Received:
    349
    create a new databse on your hosting account
    upload the sql file the seller gived you.
    copy all the wordpress files on the directory on your hosting
    change wp-config with the new details of the database you just created
     
  6. hackedd

    hackedd Junior Member

    Joined:
    Aug 11, 2010
    Messages:
    138
    Likes Received:
    172
    Gender:
    Male
    Use - wptwin - clone plugin. (5min.)
     
  7. cro-mag

    cro-mag Power Member

    Joined:
    Nov 23, 2010
    Messages:
    544
    Likes Received:
    349
    he already said he gived him all the websites files and database.
    wptwin won`t work in this case
     
  8. secretja

    secretja Regular Member

    Joined:
    Jul 12, 2010
    Messages:
    343
    Likes Received:
    73
    Occupation:
    Web Designer
    Home Page:
    Pm me and I will do that for you. ;)
     
  9. digibing

    digibing Junior Member

    Joined:
    Mar 18, 2010
    Messages:
    150
    Likes Received:
    28
    Somebody on fiverr or getafreelancer should be able to help you migrating that for $5 - $10. I usually do stuff like that myself, but then I don't value my time high enough.
     
  10. boogdan

    boogdan BANNED BANNED

    Joined:
    Nov 1, 2011
    Messages:
    53
    Likes Received:
    7
    use backup buddy wp plugin
     
  11. stecherz

    stecherz Newbie

    Joined:
    Aug 12, 2011
    Messages:
    49
    Likes Received:
    5
    Occupation:
    Mortgage Banker
    Location:
    USA
    Go to PHPmyadmin. Export your database. It's an SQL file. Save it somewhere. Open the file up in notepad. Do a search and replace string. To do this, when your file is open, hit ctrl+F on your keyboard. A dialogue box opens. Choose the search and replace function.

    search for 'localhost/whateverthenameofthedirectoryyou'vebeenusing' and replace all instances with 'xxx.yournewwebsiteaddress.xxx'. Save the file. Now your database should be all primed to import to the new server.

    Upload all wordpress files from your working copy of the website. That's the wp-admin, content, includes and all the miscellaneous php files that are in the main wordpress folder. Copy them to your new hosting in the public html folder.

    On your live server, open up the wp-config.php file in notepad. you're going to have to change some definitions here for the database, user, password and hosting.

    You will see some parameters that look like this below:

    define('DB_NAME', 'mysitedatabasename');

    /** MySQL database username */
    define('DB_USER', 'root');

    /** MySQL database password */
    define('DB_PASSWORD', 'strongpassword');

    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    end:

    database name, if you have shared hosting and possibly multiple domains available, you'll need to name your database starting with your hosting account sign-on name. ie; myhostingsigninname_mydatabasename

    same with user name - myhostingsigninname_myusername

    Make a strong password or someone may hack you either for fun or if your site is gaining popularity.

    hosting. Some hosting companies use the parameter 'localhost' and some may have you put your hosting ip there which you can see in your cpanel.

    When you have changed these parameters, save the file back to the same place you got it from, should be in your root directory, main directory of your public HTML.

    NEXT.

    sign into hosting. go to PHPmyadmin or sometimes there is a database wizard. Either way, you need to chose 'create database.' You want to create a new database with the same name, user and passwords as you just edited into your wp-config file. When you get the message you have successfully created the new database, choose the import option, compatible SQL type 40 or 323. Now your new database is ready to go and the site should start to come up.

    My experience is once I get to this part, I still need to go through the site, activate plugins and just kind of check it out. I've only done it a few times but it has never transferred perfectly. All easy fixes.

    With this information and brother G, you can get it done. Good luck.