{"id":669,"date":"2013-02-26T00:51:51","date_gmt":"2013-02-26T00:51:51","guid":{"rendered":"http:\/\/bimedia.org\/blogs\/?guid=bae803ab15a6069d581d66a8be6fd99d"},"modified":"2013-02-26T00:54:27","modified_gmt":"2013-02-26T00:54:27","slug":"civicrm-4-2-8-on-drupal-7-20-multisite","status":"publish","type":"post","link":"https:\/\/bimedia.org\/blogs\/2013\/02\/civicrm-4-2-8-on-drupal-7-20-multisite\/","title":{"rendered":"CiviCRM 4.2.8 on Drupal 7.20 Multisite"},"content":{"rendered":"<p>I&#8217;ve finally fixed a problem with installing <a href=\"http:\/\/www.civicrm.org\/\" rel=\"nofollow\">CiviCRM<\/a> 4.2.8 with <a href=\"http:\/\/www.drupal.org\/\" rel=\"nofollow\">Drupal<\/a> 7.20.<\/p>\n<p>I have a standard multisite Drupal setup, with the settings.php in <code>sites\/mydomain\/<\/code>. I untarred the Civi module into <code>sites\/all\/modules\/<\/code>, ran the Civi installer and entered the database details for Drupal and Civi. The installer ran, and failed with this error:<\/p>\n<blockquote><p>You need to define CIVICRM_DSN in civicrm.settings.php<\/p><\/blockquote>\n<p>The other weirdness I noticed is that the Civi installer wanted write access to <code>sites\/default\/<\/code> rather than <code>sites\/mydomain\/<\/code>. After a few blind alleys, I learned that the Civi installer was writing the civicrm.settings.php file to <code>sites\/default\/<\/code> and then failing to read it from <code>sites\/mydomain\/<\/code>. The workaround was to create a symlink from <code>sites\/mydomain\/civicrm.settings.php<\/code> to <code>sites\/default\/civicrm.settings.php<\/code> &#8211; this would be a broken symlink at first but the target would exist by the time the installer came to read it. Once the install is complete, you can move the Civi settings file out of default\/ with no problems.<\/p>\n<p>I&#8217;m told that if I&#8217;d put the Civi install in the mydomain-specific modules directory, this wouldn&#8217;t have been a problem &#8211; but I might want other Civi sites under the same Drupal install, so it made sense put it under all\/. I haven&#8217;t tested that either way. I&#8217;ll look for ways to submit this as a proper bug and workaround to CiviCRM eventually, but wanted to throw it up here in the hope it picks up search engine traction for others searching for that error message, as there was very little that helped me!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve finally fixed a problem with installing CiviCRM 4.2.8 with Drupal 7.20.<\/p>\n<p>I have a standard multisite Drupal setup, with the settings.php in sites\/mydomain\/. I untarred the Civi module into sites\/all\/modules\/, ran the Civi installer and entered the&#8230;<\/p>\n","protected":false},"author":3,"featured_media":1211,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,24,22],"tags":[],"class_list":["post-669","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-civicrm","category-drupal","category-geek"],"_links":{"self":[{"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/posts\/669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/comments?post=669"}],"version-history":[{"count":0,"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/posts\/669\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/media\/1211"}],"wp:attachment":[{"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/media?parent=669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/categories?post=669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bimedia.org\/blogs\/wp-json\/wp\/v2\/tags?post=669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}