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) »
  • Multiple Drupal sites, one CiviCRM codebase/database going well except ONE THING
Pages: [1]

Author Topic: Multiple Drupal sites, one CiviCRM codebase/database going well except ONE THING  (Read 1240 times)

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Multiple Drupal sites, one CiviCRM codebase/database going well except ONE THING
July 22, 2009, 10:45:24 pm
Hi I think (don't want to jinx) it but I think that I have almost...almost...pulled off the following configuration

1) Two drupal sites, two drupal databases, one drupal codebase
2) One civicrm codebase, one civicrm database, shared by both Drupal sites

Everything seems to be going fairly well so far except for one little thing.

I am noticing that the URL of one of the sites' urls is coded into the CiviCRM database here in:
Global Settings > Resource URLs > CiviCRM Resource URL

The affect this has is most when viewing a Contact Record, that the dojo javascript Tabs don't show up on one of the sites (the one not specified in the CiviCRM Resource URL) because of the improper Resource URL. 

So then I asked myself...well what are the effects of removing the http://www.domain.com from the CiviCRM Resource URL?  So it just reads: "/sites/all/modules/civicrm/"?  Well I'll tell you, it doesn't work if I have secure SSL enabled, which I do, with a certificate for each site.

I remember once that removing the www.domain.com from the Resource URL also really messes with some CiviMail functions, and makes composing HTML emails with internal href links impossible, because CiviMail doesn't know what the domain is anymore. 

So much can be done, in the civicrm.settings.php file to use one CiviCRM install for multiple drupal sites, except for this little URL that is stored in the database is tripping me up.  Can I create another row in the civicrm_domain table that will make this configuration work?  How can this stored URL be configured to use with multiple sites?

Any ideas?  Thanks, yo!
Try CiviTeacher: the online video tutorial CiviCRM learning library.

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: Multiple Drupal sites, one CiviCRM codebase/database going well except ONE THING
July 22, 2009, 11:08:27 pm

there are a few other things also stored in the DB that can potentially trip you up :)

in 3.0 (formerly called 2.3) we've addressed this issue and have explicitly added support for multiple drupal site / 1 civicrm db (thanx to the sponsors of this feature: USPIRG: http://www.uspirg.org/ and GMVCO: http://www.gmcvo.org.uk/

might be worth waiting for this. Better yet, would be good to start testig this in the svn versions of trunk

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

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Multiple Drupal sites, one CiviCRM codebase/database going well except ONE THING
July 23, 2009, 08:13:24 am
thanks for the info Lobo definitely sounds worth the wait for 2.3
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Multiple Drupal sites, one CiviCRM codebase/database going well except ONE THING

This forum was archived on 2017-11-26.