Three blogs – one low price !
As noted in a prior post, I recently stood up a new blog for my team at work. It quickly became a bit of a bother managing the various plug-ins and themes that I wanted. I thought there should be some way to instantiate multiple Workpress blogs with a single installation of the software.
For really large installations, the proper thing to do is install Wordpress MU. This is the codebase under Wordpress.com and supports hundreds and even thousands of simultaneous blogs. However, it is not for the faint of heart and I only expected to ever host a small number of blogs (three and counting). So I kept digging.
The This ‘N That blog got me started down a different path. Rubin wrote in his 2006 post about a trick to make the wp-config.php file dynamic. This file is what tells the Wordpress installation where it’s database is. The database tells Wordpress everything else. So, as the theory goes, you point multiple domain names to wp-config.php and inside, write a bit of PHP code to switch between databases. Now, in Rubin’s example, he was trying to overcome the problem of hosting packages that only allow one MySQL database. Bluehost does not have that limitation. Also, a commenter noted a security whole in Rubin’s original post. So, I made a bunch of changes to my config file so it does not have the security risk and keeps the work blog off in its own database. I did test the notion of having two blogs under one database and using table name prefixes to differentiate. It all worked for a few minutes then I triggered the creation of a new test blog and KAPLUY ! It turns out I had to go into the admin settings for each blog and tell it to refresh its notion of permalinks. I don’t know why I had to do this. I just remember seeing it in the instructions for a plug-in install way back when and it seemed like the best hope for resurrection.
In the end, it all worked. I have the following:
- one Wordpress installation
- one set of plug-ins
- one set of themes
- each blog has its own domain name and appears as entirely separate entities
- the work blog has its own database
- my personal blog and my test blog have their own tables within a common database
- each blog gets its one directory for storing uploads, images, etc (this was missed in Rubin’s solution)
FYI – The fact that two blogs looks similar has nothing to do with my installation and has everything to do with my current esthetic eye.
In theory, this solution will work for a significant number of blogs. The limitations are your hosting provider’s package of bandwidth and storage. I don’t plan to test the limits of my provider, but I will say, their default package is pretty generous!



I can not answer the title question – at least not yet. I have decided to give it another try. The reason is that I am finding I want more control over the images incorporated into my blog entries. I have two basic formats for images:

