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….







November 18th, 2007 on 3:54 pm
Cool.
November 28th, 2007 on 10:55 pm
interesting
December 1st, 2007 on 3:19 am
Nice
January 9th, 2008 on 10:43 am
Nice…