Mutliple wordpress installation on 1 userdatabase

by rullzer on May.11, 2007, under Linux

A friend of mine and I are working on a website to store all our software projects (I’ll tell you later about that). But we decided that we wanted to have a separated blog for each project. Now that is not the big problem since wordpress can do all that for us. (o it is such a nice program…) but we didn’t like the fact that each blog had a own user database. But no easy variable to change this… noooooo

OK now I’m lying. The start is easy. Add this to you wp-config.php
define('CUSTOM_USER_TABLE', 'table');
define('CUSTOM_USER_META_TABLE', 'table');

*you have to enter the right table of course (the one that your original user tabels are)

But then a nice error comes up that you do not have the right permission. The ”hard” part is to open wp-includes/capabilities.php and find ”$this->cap_key” here you change ”$wpdb->prefix” to the prefix you used for the default installation…

Now everything should work.
However you have global rights now. Need to find a way to work around that….


4 Comments for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!