wordpress-heroku
wordpress-heroku copied to clipboard
Enabling WP_ALLOW_MULTISITE
Hi everyone, I've got an instance of wordpress-heroku running successfully, and things are looking good.
We'd like to add a couple more sites, but would prefer to use Wordpress Multisite rather than deploy multiple heroku dynos.
Has anyone managed to get a network running with this?
I'm trying to get it running locally in the first instance, following this article http://www.andrewgertig.com/2013/05/set-up-wordpress-on-heroku
And also following the normal instructions for a subdomain instance, settings below and also changed the .htaccess (DOMAIN_CURRENT_SITE is localhost, and the app is running on http://localhost/):
The install screen works, the DB tables get setup and I get an email confirming the site was setup, but then when accessing http://localhost/wp-admin/ or http://localhost I just get "Error establishing a database connection"
Any help appreciated.
settings
define('WP_ALLOW_MULTISITE', true ); define('SUBDOMAIN_INSTALL', false); define('DOMAIN_CURRENT_SITE', getenv('DOMAIN_CURRENT_SITE')); define('PATH_CURRENT_SITE', '/'); define('SITE_ID_CURRENT_SITE', 1); define('BLOG_ID_CURRENT_SITE', 1); define('WP_ALLOW_REPAIR', true);
.htaccess
RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([0-9a-zA-Z-]+/)?(wp-(content|admin|includes).) $2 [L] RewriteRule ^([0-9a-zA-Z-]+/)?(..php)$ $2 [L] RewriteRule . index.php [L]