{"id":2304841,"date":"2011-09-19T19:05:34","date_gmt":"2011-09-19T19:05:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/multisite-setup-issues\/"},"modified":"2016-08-20T02:31:04","modified_gmt":"2016-08-20T02:31:04","slug":"multisite-setup-issues","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/multisite-setup-issues\/","title":{"rendered":"Multisite setup issues"},"content":{"rendered":"<p>Even after 3 or more successful install of wordpress in multisite mode I still cannot get my head around the process or why it&#8217;s so finicky. Basically, I have ssh and sudo access to my server so I do everything on the command line (no faffing with cpanel and the like).<br \/>\nI create the mysql database in the normal way with<br \/>\n<code>mysql&gt; CREATE DATABASE testbp DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;<\/code><br \/>\nand add the database user. I then install the latest 3.2.1 code into the appropriate dir <code>usr\/local\/www\/apache22\/data\/test-bp<\/code> and reconfigure the Apache VHOST to point to here. Now I start up the WP site and create an administrator account with password. Now I log out.<\/p>\n<p>Next I want to convert this to a multisite (folders) setup, so to <code>wp-config.php<\/code> I add:<\/p>\n<pre><code>define( &#039;MULTISITE&#039;, true );\ndefine( &#039;SUBDOMAIN_INSTALL&#039;, false );\n$base = &#039;\/&#039;;\ndefine( &#039;DOMAIN_CURRENT_SITE&#039;, &#039;quake.sergius.earlham.edu&#039; );\ndefine( &#039;PATH_CURRENT_SITE&#039;, &#039;\/&#039; );\ndefine( &#039;SITE_ID_CURRENT_SITE&#039;, 1 );\ndefine( &#039;BLOG_ID_CURRENT_SITE&#039;, 1 );<\/code><\/pre>\n<p>And also I configure the appropriate .htaccess.<br \/>\nAs far as I can see I have done things in a perfectly logical way and yet when I open up the URL I get:<\/p>\n<blockquote>\n<p><code>Error establishing database connection<\/code><\/p>\n<\/blockquote>\n<p>Editing the wp-config.php and changing <code>define( &#039;MULTISITE&#039;, true );<\/code> to <code>false<\/code> allows me to login.<\/p>\n<p>So I&#8217;m in a catch-22 situation here. I need a multisite setup and yet the system won&#8217;t allow me to create one. What is going on here and why is this procedure so tricky?<\/p>\n","protected":false},"template":"","class_list":["post-2304841","topic","type-topic","status-closed","hentry","topic-tag-database-error","topic-tag-install-problem"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2304841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/2304841\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=2304841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}