3

I run several instances of WordPress on a server for managing blogs across multiple domains (also hosted on the same server). Some domains are even utilizing multiple WordPress instances just as subdirectories.

What is the best way of implementing those instances so they can all be kept up-to-date easily? Right now, about a week or two after a release of WP, I login and manually update every instance from the newly-downloaded tar.gz.

The only thing I have shared between all instances are the content items (themese, etc). I handle that via symbolically linking to the 'main' content directory form each instance's install path.

Is there a way of doing something similar with the actual code portions of WordPress? I believe the only instance-specific configurations are for what database to connect-to.

warren
  • 17,829
  • 23
  • 82
  • 134
  • the built-in auto-updater takes about two clicks? Why not use it to ease life? – Chris_K Feb 24 '10 at 03:10
  • I don't like the built-in updater expressly because I use the symlink to the content directory. Also - ftp access is not enabled on my server – warren Feb 24 '10 at 14:47
  • looks like MU is the right answer, so that's where I'll head – warren Mar 03 '10 at 19:20

5 Answers5

5

Why not use WordPress-mu, isn't that what it's designed for? FYI Wordpress 3, due for release in about three months, will have -mu integrated.

Until then, you could probably just symlink all the core files, basically everything except the config files or user content directories.

davr
  • 1,729
  • 3
  • 14
  • 24
  • I'm looking to do this *without* wp-mu (as per my question). From my previous experience with mu, you can't host multiple domains with it - just multiple subdirectories off a main domain, or subdomains from the main one. Perhaps I'm wrong in that understanding, but that was what I had experienced previously. – warren Feb 24 '10 at 14:48
3

WPMU with the multi site plugin (http://www.google.com/search?q=1193384369_njsl-sites-009.php) does the trick perfectly.

You can actually host domains just by having different blogs by using a Domain Mapping plugin but this way keeps the whole lot seperate (but same code/db).

Zoredache
  • 128,755
  • 40
  • 271
  • 413
Chris
  • 151
  • 1
2

I have not tested, but thought that unionfs, might be a tool that could be helpful for something like this. Unionfs is a tool frequently on livecds to have a portion of the filesystem come from the read-only CD, and some of it go to a RAM-Disk. I have never done or tested this, but I thought you could do something like this

/base-wp-dir = base wordpress files
/instance1-files = files related to a specific instance of wp
/instance2-files
/www/instance1-union = rw-/instance1-files,ro-/base-wp-dir
/www/instance2-union = rw-/instance2-files,ro-/base-wp-dir

So basically when it is time to upgrade, you unmount all the union instance folders, update word-press in the base folder, and then remount your unions.

Here is a nice Linux Journal article about unionfs.

Zoredache
  • 128,755
  • 40
  • 271
  • 413
1

This is an old question, but it is worth noting that Wordpress's 3.0 release merged Wordpress-MU into Wordpress. So now, the default Wordpress 3.0 installation allows easy multi-site setup, maintenance and upgrades.

Jake Wilson
  • 8,494
  • 29
  • 94
  • 121
1

Just in case someone stumbled upon this question: theoretically, it's doable using Wordpress MU Domain Mapping plugin: http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

I haven't used it myself but during my research, I stumbled upon this plugin.

111110100
  • 75
  • 3