Two installations on single database
-
I’m having a problem with admin when installing two blogs on a single database.
I have got brand new hosting with cpanel, and I’m trying to install two blogs into separate folders – https://www.mysite.com/tennis and https://www.mysite.com/squash. I entered separate table prefixes when doing the cpanel install, and everything went smoothly – both blogs show up fine.
However, when I try visit the “Site Admin” link and log in (for either blog), it will display the error “You do not have sufficient permissions to access this page.“
Looking at the wp-config.php files that were created in each directory, they seem to be correct according to this support page. Here are the relevant parts of each wp-config.php file:
define('DB_NAME', 'admin_wp1'); define('DB_USER', 'admin_wp2'); define('DB_PASSWORD', 'xxxxx'); define('DB_HOST', 'localhost'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); define('AUTH_KEY', 'xxxxx'); define('SECURE_AUTH_KEY', 'xxxxx'); define('LOGGED_IN_KEY', 'xxxxx'); define('NONCE_KEY', 'xxxxx'); $table_prefix = 'tennis_'; define ('WPLANG', '');
define('DB_NAME', 'admin_wp1'); define('DB_USER', 'admin_wp1'); define('DB_PASSWORD', 'xxxxx'); define('DB_HOST', 'localhost'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', ''); define('AUTH_KEY', 'xxxxx'); define('SECURE_AUTH_KEY', 'xxxxx'); define('LOGGED_IN_KEY', 'xxxxx'); define('NONCE_KEY', 'xxxxx'); $table_prefix = 'squash_'; define ('WPLANG', '');
Any idea why this might be happening?
- The topic ‘Two installations on single database’ is closed to new replies.