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) »
  • Difficulty with multisite install
Pages: [1]

Author Topic: Difficulty with multisite install  (Read 4654 times)

venkat-rk

  • Guest
Difficulty with multisite install
April 28, 2007, 06:52:06 am
Hi,

I have civicrm installed at sites/all/. After creating a new drupal site in a multi-site install, I went ahead and did the following:

1.) Created a separate db for civicrm
2.) Copied the civicrm folder with the three folders (persist, upload etc) within it from a previous civicrm install and placed it in the files directory of the new site
3.) Edited civicrm.settings.php with the right db values for the link to the drupal site db, the crm db and the path to the code base.

After I went to the modules page and enabled the civicrm module, the site went blank and has been blank ever since. php.ini has 64 MB memory and there are just two other sites without any content so memory doesn't seem to be the issue.

I deleted the civicrm folder in the new site, but I am still getting the error, "Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sitename/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224"

Interestingly, the other civicrm site that is referencing the same codebase at sites/all is working fine. Even after deleting the entire civicrm folder at sites/nameofsite.org/files/, I still can't get to the new drupal site to disable civicrm.

Any suggestions as to what might be wrong?

Thanks,
Venkat

venkat-rk

  • Guest
Re: Difficulty with multisite install
April 28, 2007, 09:07:49 am
I suspect the answer is here:
http://forum.civicrm.org/index.php/topic,18.msg51.html#msg51

I will check it out.

Venkat

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: Difficulty with multisite install
April 28, 2007, 12:13:57 pm

Venkat:

Make sure you have a civicrm.settings.php file in each of the sites directory. Thus if u have a multisite running on domains A and B, then u need:

sites/A/settings.php
sites/A/civicrm.settings.php

sites/B/settings.php
sites/B/civicrm.settings.php

both the sites can share the codebase at

sites/all/modules/civicrm.settings.php

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

venkat-rk

  • Guest
Re: Difficulty with multisite install
April 29, 2007, 07:30:02 am
Lobo,

Thanks for the tips. I just learned that between the install of the original codebase and the first few drupal/civicrm sites and this new drupal-civicrm install based on the same codebase, php was changed from running as phpsuexec to running as an apache module, mainly to get the benefit of using eaccelerator, the op-code cache.

We have chown'd and chgrp'd the new drupal-civicrm folders and files at sites/newsite.org for all they are worth and the civicrm root is correctly defined, but we are still having a blank site. Could it have anything to do with the fact that apache is unable to write to the sites/all/modules/civicrm directory since it is running as 'nobody' now?

The directories themselves are running as user:user

Intriguingly, I can login to the older sites running just drupal, but not to another site that previously had a perfectly working install of civicrm. I get the same blank site.

Thanks,
Venkat

venkat-rk

  • Guest
Re: Difficulty with multisite install
April 29, 2007, 09:24:15 am
I disabled civicrm from the drupal system table and got the site back, but also a bunch of errors on the home page:

Quote

    * user error: Smarty error: unable to write to $compile_dir '/home/webuser/public_html/sites/domain.org/files/civicrm/templates_c'. Be sure $compile_dir is writable by the web server user. in /home/webuser/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1095.
    * warning: Smarty::include(/home/webuser/public_html/sites/domain.org/files/civicrm/templates_c//%%40/40D/40D353E1%%fatal.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * warning: Smarty::include() [function.include]: Failed opening '/home/webuser/public_html/sites/domain.org/files/civicrm/templates_c//%%40/40D/40D353E1%%fatal.tpl.php' for inclusion (include_path='.:/home/webuser/public_html/sites/all/modules/civicrm:/home/webuser/public_html/sites/all/modules/civicrm/packages:.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1265.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.
    * warning: include_once(sites/domain.org/civicrm.settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: include_once() [function.include]: Failed opening 'sites/domain.org/civicrm.settings.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 218.
    * warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/webuser/public_html/sites/all/modules/civicrm/drupal/civicrm.module on line 224.

It looks like my guess was correct. Should I set the directory permissions for the civicrm codebase to 777?

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: Difficulty with multisite install
April 29, 2007, 11:28:38 am

Venkat:

you need to give the apache user (nobody in this case) write permission on the files directory

/home/webuser/public_html/sites/domain.org/files

You can either make that directory owned by nobody and give it 700 access or give it a blanket 777 access (less secure)

also looks like nobody does not have read access (or the file does not exist) to:

sites/domain.org/civicrm.settings.php

please ensure that the appropriate ownership and permissions are present on that directory and files

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

venkat-rk

  • Guest
Re: Difficulty with multisite install
May 01, 2007, 08:36:26 am
I went ahead and recompiled php again to run as phpsuexec and all the problems disappeared as if by magic. The downside is I cant use any opcode cache such as eaccelerator to speed things up, but I will buy peace of mind for the time being.

Thanks for your help. :)

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

This forum was archived on 2017-11-26.