Moving Wordpress site from Hostgator to Linode

Hi all, I currently have shared hosting from Hostgator for a really small Wordpress blog. I'm looking to use Linode to host a large side project under a different domain, and I want to migrate my blog to Linode as well. The side project and blog will be under two separate domains.

In Hostgator, I have a Wordpress blog set up with Apache. When I start using Linode, I plan to install nginx.

My question is: given that I want to migrate from using Apache on Hostgator to nginx on Linode, how should I migrate my Wordpress site?

4 Replies

Copy your site over, and tweak the copy until it works. Once you're sure that it works, point the domain at your Linode.

The primary difference between Apache and nginx, as far as WordPress is concerned, is that nginx doesn't recognize .htaccess files. You'll have to translate whatever you have in those files into nginx configuration. Most of it is just one Google search away, but some add-ons might take a bit more work.

@aless:

My question is: given that I want to migrate from using Apache on Hostgator to nginx on Linode, how should I migrate my Wordpress site?

I had several WordPress sites with Bluehost. I just zipped my entire WordPress folder. If you use the WP-DB-Backup plugin, you should have a copy of your SQL in that folder already [wp-uploads/backup]. Once I got my CentOS LEMP stack running, I just wget the files from Bluehost to my account. You can import your SQL with the following command:

mysql -uUSERNAME -pPASSWORD DATABASENAME < MYDATABASE.sql

PacktBooks have two really good Nginx books with sections about installing WordPress including the rewrite rules.

Sorry for the duplication. Late night here.

Thank you for the suggestions!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct