Moving Wordpress site from Hostgator to Linode
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
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.