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

SpaceAge

Newbie
Joined
Dec 11, 2010
Messages
48
Reaction score
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.
 
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.
 
That is certainly under consideration, but for the time being I need a solution to this.

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.
 
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
 
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.
 
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.
 
Back
Top