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) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Multisite installation
Pages: [1]

Author Topic: Multisite installation  (Read 4150 times)

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Multisite installation
December 22, 2009, 09:26:34 am
I want to do a civicrm multisite installation and am looking at the documentation: http://wiki.civicrm.org/confluence/display/CRMDOC/Multi+Site+Installation

However at the first line it seems to go wrong because I cannot find the requested items:
1. Single / First site installation
Say site1.example.com which would be same as any other normal civicrm installation. Before visiting any civicrm url enable multisite by modifying

//define( 'CIVICRM_MULTISITE', null );To

define( 'CIVICRM_MULTISITE', 1 );

But where can I find this? I does not seem to be an entry for the settings file. Should I just add it?

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Multisite installation
December 22, 2009, 10:35:30 am
Looking at our test install it looks to be at .../sites/<site1>/civicrm.settings.php

if this is correct we should add to the first line of the wiki.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: Multisite installation
December 22, 2009, 10:37:51 am
yes.. I found this also in the wiki

6. Enable multi site for second site
Modify located civicrm.settings.php file (for site2) to change following line -

//define( 'CIVICRM_MULTISITE', null );To

define( 'CIVICRM_MULTISITE', 1 );

Guess it's the same file for the first wiki  :)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Multisite installation
December 22, 2009, 10:42:07 am
You probably want to read the last third of this long thread as there are a lot of fixes being done (or maybe they are in the current release - not too sure.

http://forum.civicrm.org/index.php/topic,10930.0.html
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

andro01

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
Re: Multisite installation
December 22, 2009, 11:32:50 am
thanks.. the setup I need seems to be a lot simpler though.

What I am looking into is a single civicrm database and multiple drupal websites in the front. The idea is to use civicrm as a member administration with a shared agenda and membership list over the sites. So I don't foresee the same problems as illustrated in the thread... at least I hope  ;)

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: Multisite installation
May 02, 2010, 07:31:59 pm
followed the wiki instructions but so far not having much luck.
I have 7 domains set up in drupal, one L1 org and 6 L2 orgs.
All 6 L2 orgs have the L1 org set as the 'parent' group.
Modified all the civicrm.settings.php files for each domain to use their appropriate domain id, group id and org id:
define( 'CIVICRM_MULTISITE'           , 1 );
define( 'CIVICRM_UNIQ_EMAIL_PER_SITE' , 1 );
define( 'CIVICRM_DOMAIN_ID'      , 1 );
define( 'CIVICRM_DOMAIN_GROUP_ID', 6 );
define( 'CIVICRM_DOMAIN_ORG_ID'  , 4 );

Users created on L2a are added to the L1 group and not the L2a group and a user on L2a can see all child groups of L1 (L2b, L2c, etc)

Step 3 is 'Modify civicrm_codebase/sql/civicrm_navigation.mysql file and specify new domain, e.g'
Older setup instructions mention running the civicrm_data.mysql file, is this not necessary on 3.1?

Do I need to set up a drupal role to match each civicrm L2 group?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Multisite installation
May 03, 2010, 07:12:19 am

did you download and enable the civicrm_multisite module

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: Multisite installation
May 03, 2010, 10:32:43 am
Yes, downloaded and enabled the multisite module. I followed all the steps in the wiki instructions. My L2 domains have their own directories under the 'sites' directory with their civicrm settings files set to the appropriate domain id, group id, and org id.

L1 site:     drupal/sites/default/settings.php
           drupal/sites/default/civicrm.settings.php
L2 site:   drupal/sites/domain2.com/civicrm.settings.php
L2 site:   drupal/sites/domain3.com/civicrm.settings.php

In my civicrm_domain table, the 'config_backend' field is null for my L2 domains, is there something special that needs to be entered there?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Multisite installation
May 03, 2010, 12:28:38 pm

did you login to any of the L2 sites? if so, the config backend for the L2 sites cannot be null

note that the multisite code is still under active development. As such there are potentially quite a few issues with it. Your best bet is to work closely with a developer or consulting firm and help improve the code and installation process and fix the bugs present

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

r2d2

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.19
  • MySQL version: 5
  • PHP version: 5
Re: Multisite installation
November 27, 2011, 06:53:54 am
Hello,

First of all, many thanks to the people who developed this wonderful product, and maintain this forum. We have been trying to make CiViCRM multisite functionality work for a week. I have read all the related posts. We have followed the instructions at wiki.civicrm.org/confluence/display/CRMDOC40/Multi+Site+Installation (sorry, the forum wouldn't let me post external links). We are stuck at Step 11, where we need to install Drupal multisite module. We put both files "multisite.info" and "multisite.module" in a directory titled "multisite" and put it under the following locations, neither of which has worked (the module does not appear under Drupal admin's module list):
/modules
/sites/all/modules/civicrm/drupal/modules

How should we proceed? We appreciate any guidance.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Multisite installation
November 27, 2011, 03:27:49 pm

seems like this is more a drupal module detection issue than a multisite issue. Might want to see if your drupal install can detect and install other 7.x modules

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

r2d2

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.19
  • MySQL version: 5
  • PHP version: 5
Re: Multisite installation
November 27, 2011, 06:43:56 pm
Hi Donald,

My Drupal install successfully detects/installs/uses all CiviCRM modules and other ones. It looks like the latest multisite module works only for Drupal 6.x, which is what I get from the multisite.info file. I will install Drupal 6.19 along with CiViCRM 3.4.7 and see if it works.

r2d2

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6.19
  • MySQL version: 5
  • PHP version: 5
Re: Multisite installation
November 28, 2011, 08:57:30 am
Just FYI:

The multisite module works with D6.19 + C3.4.7. I have put the multisite module directory under /sites/all/modules/civicrm/drupal/modules. I will keep you posted if (should I say when  :D ?) encountered any issues/errors/bugs etc.

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Re: Multisite installation
December 20, 2011, 09:46:34 am
I think all you need to do to make the multisite module work with Drupal 7 is change core = 6.x to core = 7.x in multisite.info . multisite.module only contains functions for civicrm hooks & associated helper functions, I don't see anything that would require changing for D7. Seems fine in early testing here. If you find something that does need changing, please post details.

Dave J

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Multisite installation

This forum was archived on 2017-11-26.