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) »
  • Developer Discussion »
  • Scalability (Moderator: Donald Lobo) »
  • reading CIVICRM_CONFDIR definition from site's civicrm.settings.php
Pages: [1]

Author Topic: reading CIVICRM_CONFDIR definition from site's civicrm.settings.php  (Read 1908 times)

general_ludd

  • I’m new here
  • *
  • Posts: 24
  • Karma: 1
  • CiviCRM version: 4.1.0
  • CMS version: Drupal 7.x
  • MySQL version: 5.1.62-0ubuntu0.10.04.1
  • PHP version: PHP Version 5.3.2-1ubuntu4.14
reading CIVICRM_CONFDIR definition from site's civicrm.settings.php
May 08, 2012, 01:27:58 pm
In multiple-site setups or ones where the civicrm module directory is symlinked into sites/default/modules/civicrm it seems a better code design would be to define the code path CIVICRM_CONFDIR in the sites/default/civicrm.settings.php file. Currently the solution is to define CIVICRM_CONFDIR in a new file called settings_location.php in the civicrm module directory. The idea of modifying the module directory in any way seems like a bad idea because it can be broken during upgrades.

Since I am very new to CiviCRM and the code is quite complex, I am not sure where this change could be made. Theoretically, if we can merge how the cron.php and cli interface identifies the sites directory and the site itself determines its location, then this could all be defined in a site preferences file (civicrm.settings.php). What I need to know to start looking at this problem is the best place to get started on testing the code?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Scalability (Moderator: Donald Lobo) »
  • reading CIVICRM_CONFDIR definition from site's civicrm.settings.php

This forum was archived on 2017-11-26.