CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • Installing civicrm in D7 multi-site
Pages: [1]

Author Topic: Installing civicrm in D7 multi-site  (Read 10772 times)

alfa8007

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.0.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.43
  • PHP version: 5.2
Installing civicrm in D7 multi-site
March 21, 2011, 08:58:05 am
Hi,

I have a Drupal 7 multi-site installation with 2 sites. I copied the CiviCRM 4.0 codebase to /sites/all/modules so it could be shared by all the drupal multi-sites.

None of the sites are configured in /sites/default only in /sites/website1 and /sites/website2.

When I run the installer on the first website (/website1/sites/all/modules/civicrm/install/index.php) I get 2 error messages:
1. During the installation the installer warns there is a problem with the folder /sites/default/files so I created that folder
2. After the installation there is an errors messages:
------------------------------------------------------------------------------------------------
Error
The website encountered an unexpected error. Please try again later.

Error message

    * Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time in drupal_environment_initialize() (line 521 of D:\www\d7-multisite\includes\bootstrap.inc).

    * PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} (rid, permission, module) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 2 [:db_insert_placeholder_1] => access CiviMail subscribe/unsubscribe pages [:db_insert_placeholder_2] => ) in user_role_grant_permissions() (line 2968 of D:\www\d7-multisite\modules\user\user.module).

Status message

Oops! - The CiviCRM settings file (civicrm.settings.php) was not found in the expected location (sites/eurosint.eu/civicrm.settings.php).
------------------------------------------------------------------------------------------------

Any help will be very much appreciated,

Yaniv

dquark3

  • Guest
Re: Installing civicrm in D7 multi-site
October 18, 2011, 05:37:00 pm
Yes, the Drupal 7 version of CiviCRM 4.0 apparently did not consider the possibility of a multi-site install of Drupal. The civicrm.settings.php file is written to the 'default' directory rather than the individual sites' directory. Hence the error (after a successful intstall)

Oops! - The CiviCRM settings file (civicrm.settings.php) was not found in the expected location (sites/<yoursite>/civicrm.settings.php).

Solution: I found one and only one fix, for which I was able to install multiple instances using the same code base. I patched the 'civicrm/install/index.php' file according to the post:

http://
issues.civicrm.org/jira/browse/CRM-7980

I don't know why this issue was dismissed--of course it can't be replicated unless you are using a multi-site install.
« Last Edit: October 18, 2011, 05:40:43 pm by dquark3 »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • Installing civicrm in D7 multi-site

This forum was archived on 2017-11-26.