| Subcribe via RSS

Back to the Original Server

May 15th, 2008 Posted in FreeBSD, Think

A few days back, I decided to move OfficeCafe to another server so I could rebuild this one. It’s done. I had about a half hour of down time while I made the old server stop listening for connections, powered up the new server, and made WordPress talk to MySQL again.

Again, Bryan J. Hong’s book, Building A Server With FreeBSD 7, came in real handy. I had rebuilt this server so that my standard directory structures could be implemented.

The main problem I had was that WordPress could not access the MySQL database. Checking back in the book, I realized that I had missed a step on page 215. I needed to create the wordpress.conf file and restart Apache. MySQL also needed to be restarted:

# /usr/local/etc/rc.d/mysql-server restart

That did the trick. We’re back and running. The preparation for the move back involved backing up the database(s), copying them to the new server, and restoring them.

There are a lot of details involved in moving a WordPress blog from one server to another (and back)! I don’t recommend making a habit of it. But in the process, I realized that having a backup of the database and the root directory of the blog is a great thing to do. If I need to move it to another server, I should be able to pick up the main files and drop them into place and keep going!

Leave a Reply