Tag Archives: bash

Switching from WordPress MU to WordPress

For almost a year now, I ran a WordPress MU site with BuddyPress, and bbPress, all running the latest bleeding-edge SVN releases. Unfortunately, I soon learned that this is not an easy task at all. Bleeding-edge releases, while fun and full of new features are very disaster prone. In the process of fixing things,  other things break and then, it’s just not a happy application. The amount of time I spent fixing things, searching how to fix things, and scratching my head because I just couldn’t fix things was just too much. Obviously, running bleeding-edge software on a production site isn’t the best of ideas.

I was unable to keep up with the updates and eventually the sites just died. Some programs on the Virtual Private Server insisted on filling up the virtual hard drive with lots and lots of statistical data. Unfortunately, statistical data on several dead websites is hardly useful at all. Once the virtual drive was full the server basically destroyed itself. Isn’t that just lots of fun?

After several months and several domain expiries, I decided it would make sense to get rid of a testing ground and only keep production sites. I reasoned that if a testing ground was needed, it would be easy enough to build on my local virtualbox setup of Ubuntu 8.04 LTS Server Edition. I reloaded the VPS with CentOS 5 and happily was greeted with an empty hard drive again. Last time, my VPS was running Kloxo from LXLabs. Unfortunately, after the great HyperVM and Kloxo vulnerabilities of 2009, I was very wary with installing Kloxo again. It also had the “great” statistical tendencies.

I decided to install Webmin and it’s module virtualmin for administration because I have used it before and it is a truly much better alternative to Kloxo. Virtualmin, though has a paid version, however, in my experience, the GPL one works just fine. Admittedly, I do know my way around Linux and could easily run all of these commands through an SSH terminal but it’s much easier to just use a web-based control panel.

The install was quick and painless, just a simple bash script that needed execution and everything was working fine. I logged in to Virtualmin, created a new account for this domain, after modifying features per domain and set up was complete. I simply had to install WordPress and then upload modified sections of my database from the WordPress MU install. From there, it was simply configuring permissions, installing plugins, setting themes, and embedding functions.

In an afternoon’s work, I managed to backup all of my data from WordPress MU, BuddyPress, and bbPress, reload my Virtual Private Server, install a new control panel, set up new DNS with XNAME, and restore my backups to WordPress (Single User). Hopefully here, problems will be virtually non-existent and with some luck, everything should work for good this time.