For those who have had to move wordpress you probably have found it a little tedious as there is no quick way to pick it up and move to another server. Well I have moved a bunch of sites from my development server to their respective production environments so I have the process down. Below is a checklist of how to move from server to server.
- Move all the files from the WordPress directory to the main server (I find it easier to zip everything the transfer that one file and then unzip on the server)
- Edit the wp-config.php file in the root folder to have the correct connection information on the new server
- Dump the database to a file using the mysqldump command (See Post)
- Re-import the dumped data file to the new server using the mysql command (See Post)
- Log into the production server and run the following two SQL lines:
- update wp_posts set post_content = replace(post_content,’DEVSERVERURL‘,’PRODSERVERURL‘);
- update wp_options set option_value = replace(option_value,’DEVSERVERURL‘,’PRODSERVERURL‘);
- Log into WordPress Admin and double check all the general settings (if you use nextgen you have to re-input everything manually)
- Turn off your Dev server (This one is key so you know that you can see if you have any image or anything references pointed back to your old server)