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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • problem with drupal multisite and cron from command line
Pages: [1]

Author Topic: problem with drupal multisite and cron from command line  (Read 566 times)

jimmy_row

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5.37
  • PHP version: 5.4
problem with drupal multisite and cron from command line
February 15, 2013, 06:51:50 am
I follow the instructions as per the civicrm wiki and append '-s mydomainname' to the command, but it returns this error:

 /home/all/modules/civicrm/../..//default/civicrm.settings.php


(My sites folder in my drupal code base is symlinked to /home).

Any ideas?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: problem with drupal multisite and cron from command line
February 15, 2013, 07:03:27 am
Hi,

you can put in your civicrm root a file settings_location.php that contains

Code: [Select]
<?php

// the directory name for your 'sites' location in drupal. We use the below location
// along with drupal 'conf_init()' function to figure out where the settings files
// are located. This is primarily used when we hit CiviCRM outside of 'Drupal' (via mail/soap
// etc)
define( 'CIVICRM_CONFDIR', '/var/www/drupal/4.2/sites' );


It tend to help a lot when you mix mutisite and symlinks
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

jimmy_row

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Drupal 7.27
  • MySQL version: 5.5.37
  • PHP version: 5.4
Re: problem with drupal multisite and cron from command line
February 20, 2013, 11:48:12 am
Alright, that did it! Thanks

James

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • problem with drupal multisite and cron from command line

This forum was archived on 2017-11-26.