As I currently only have one server which I run my labs on I thought it best to move live production web sites and email servers off to other resources for the time being. That being said I moved my Exchange server over to Rackspace and my web sites over to Host Gator. The email transfer went smoothly and I was able to migrate all my emails from my Exchange 2007 server to theirs. As I will probably move back at a later time I just moved my calendars to iCloud as that service will be with me always as I am a Mac user.
The web side just required a little thought to figure out how I was going to transfer everything. The main thing I was worried about was if there would be problems moving from an IIS7 Web server to an Apache Web Server. For the most part it was pretty straight forward, just needed to make a few adjustments to the wp-config.php file. Here are the steps I did in case anyone else wants to do something similar.
- Made a backup of my WordPress Database using the MySQL Administration tool installed on the server.
- Copied the entire WordPress directory to my mac so I could FTP it to the new server.
- Changed the nameservers to point to Hostgator instead of my server.
- Created a new database on Hostgator and a user with full admin rights to the database.
- Used MyPhpAdmin to connect to the new database and copied the SQL export from step 1 into the SQL query field, and changed the database name at the start of the SQL query to the new database name.
- Then it was just a matter of uploading the entire wordpress directory to the new server.
- Edited the wp-config.php file to point to the new database name and username and password.
- The last thing I needed to change was due to my plugins not working upon moving the site. Apparently I setup a define line in wp-config.php to point to the plugin directory on my IIS7 server and this was causing issues on the new server. I just commented out the line and all the plugins showed back up.
- Once all that was done I tested the web site and everything looked to be in working order. I then updated Word Press to the latest version and updated any of my plugins that needed it.
In all the migration went very smoothly and moving back to my IIS7 server when the time comes should be just as easy. In the mean time I can now do more labs on my server without worrying about losing emails or my web site going down. For one it will allow me to try VMWare on the server as that will require me to wipe out the entire OS in favor of the VMWare installation.