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 »
  • Pre-installation Questions (Moderator: Dave Greenberg) »
  • Drupal and Civicrm in two separate installations
Pages: [1]

Author Topic: Drupal and Civicrm in two separate installations  (Read 986 times)

pike67

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 0
  • CMS version: drupal7
Drupal and Civicrm in two separate installations
January 12, 2012, 07:46:11 am
Hi

I am preparing to set up CiviCRM. I prefer to have one DB for the web, one DB for the CRM, mainly for security reasons. The web DB has a different lifecycle, a different maintainance model, etc. A drupal web installation may have all sorts of funny modules installed that I dont want on my CRM installation. So, not only two DB's, but really two different drupal installs. Does that make sense ?

I've think it can be done. But what are the pros and cons ?  I read the Civicrm 'member' can sync with a drupal 'user', but how about organisations or events (if you use civievent and I have custom classes defined for organisations and events on the web side) ? How could these be kept in sync ? Is there a 'best practice' ?

In the end, I foresee telling my client 'not to click the edit button' on either one of the two sides, either the web db or the crm db :-D Is there a way to avoid that ?

*-pike
« Last Edit: January 12, 2012, 07:55:06 am by pike67 »

davem

  • I post occasionally
  • **
  • Posts: 60
  • Karma: 0
    • Circle Interactive
  • CiviCRM version: 3s and 4s
  • CMS version: D6, D7, J!, WP
Re: Drupal and Civicrm in two seperate DB's
January 12, 2012, 08:02:56 am
Hi pike67
Separate dbs for Civi and Drupal is completely normal and doesn't affect any syncing with members, events or anything else. It comes down to maintenance issues and what you prefer there but we generally like to keep them separate. Install instructions and some discussion of this are on http://wiki.civicrm.org/confluence/display/CRMDOC40/Drupal+Installation+Guide+for+CiviCRM+4.0

When you say
Quote
telling my client 'not to click the edit button'
do you mean giving them some kind of access to the databases through a gui like phpmyadmin? That sounds like a really bad idea if your client is the end user and not a developer.
Good luck

DaveM

pike67

  • I post occasionally
  • **
  • Posts: 55
  • Karma: 0
  • CMS version: drupal7
Re: Drupal and Civicrm in two separate installations
January 12, 2012, 08:16:22 am
Hi Davem

Thanks for your answer. I saw the installation guides and realize having separate DB's is done more often. How does that help improving security, if Drupal has access to the CiviCRM db anyway ?

I would rather have a completely separate installation of Drupal and CiviCRM, I think. I probably need to say 'two different drupal installations', one running a website, one running a crm. But then, there is a synchronisation issue.

Quote
and doesn't affect any syncing with members, events or anything else

So what if I *want* to sync members, events etc ? I've seen civicrm members can be synced to drupal users. How about other classes ?

Quote
do you mean giving them some kind of access to the databases through a gui like phpmyadmin

No. But they will have access to the drupal CMS admin and to CiviCRM. Both will partly be allowed to edit the same content ?

still curious,
*-pike

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal and Civicrm in two separate installations
January 12, 2012, 11:52:04 am
Quote from: pike67 on January 12, 2012, 08:16:22 am
Thanks for your answer. I saw the installation guides and realize having separate DB's is done more often. How does that help improving security, if Drupal has access to the CiviCRM db anyway ?

Who said it does improve security? It may help a bit in reality, but this is not the reason people use two DBs. Mostly it's just convenience and portability etc.

Quote from: pike67 on January 12, 2012, 08:16:22 am
I would rather have a completely separate installation of Drupal and CiviCRM, I think. I probably need to say 'two different drupal installations', one running a website, one running a crm. But then, there is a synchronisation issue.

I don't quite follow. If one site runs Drupal and not CiviCRM and the other is Drupal with CiviCRM, then unless the two Drupal's share a users table, then CiviCRM is completely divorced from the Drupal only site.

Quote from: pike67 on January 12, 2012, 08:16:22 am
So what if I *want* to sync members, events etc ? I've seen civicrm members can be synced to drupal users. How about other classes ?

The only synch available is for CiviCRM Contacts to Drupal users. AFAIK.

Quote from: pike67 on January 12, 2012, 08:16:22 am
No. But they will have access to the drupal CMS admin and to CiviCRM. Both will partly be allowed to edit the same content ?

Access to CiviCRM is governed by Drupal's permissioning system (not to mention CiviCRM's own ACL system) and so it's like any other part of Drupal--each user has whatever access you give him.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Pre-installation Questions (Moderator: Dave Greenberg) »
  • Drupal and Civicrm in two separate installations

This forum was archived on 2017-11-26.