moved multi-site won't establish database connection if I activate in ip-config
-
I’ve moved my multi-site from GoDaddy’s old hosting server where it worked fine, to their new cPanel hosting. Now if I leave the multi-site activation code in wp-config.php I lose my database connection.
My site url is community-connect.ca
Here’s the last part of my wp-config.php file when I can connect to the database but don’t have multisite:
define(‘WP_DEBUG’, false);
/* That’s all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’);/* Multisite */
define(‘WP_ALLOW_MULTISITE’, true);If I add the code like this it no longer connects to the database:
define(‘WP_DEBUG’, false);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘community-connect.ca’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);/* That’s all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’);/* Multisite */
define(‘WP_ALLOW_MULTISITE’, true);I tried taking out the last line of code but that didn’t make any difference.
- The topic ‘moved multi-site won't establish database connection if I activate in ip-config’ is closed to new replies.