Open brettcs opened 7 years ago
FWIW, the search algorithm which figures out how to bootstrap is not in civix
proper -- it comes the utility/library cv
(esp. https://github.com/civicrm/cv/blob/master/src/Bootstrap.php ).
Have you tried constructing the PATH to the civicrm.settings.php
in different ways?
For example, if /usr/share/drupal7
is the nominal root of the project, then maybe CIVICRM_SETTINGS=/usr/share/drupal7/sites/default/civicrm.settings.php
would work better? That way there's at least a theoretical possibility of discovering the path to the actual Drupal root.
I'm running a CiviCRM system installed on Debian 8 ("jessie", current stable) and its drupal7 package. The filesystem is laid out like this:
/usr/share/drupal7
./usr/share/drupal7/sites
is a symlink to/etc/drupal/7/sites
, which came with adefault
subdirectory. It looks like this:/var/lib/drupal7
has subdirectories for those symlinks, plus abackups
subdirectory.I think the rationale here is:
/usr
and is controlled by apt./etc
and are controlled by the sysadmin./var
and are controlled by the Drupal code.In CiviCRM, Administer→Directories→Extensions Directory is set to
[civicrm.files]/ext/
.Because of all this, it seems like the right place to run civix is under
/var/lib/drupal7/files/ext
. But because that's outside the Drupal root, it doesn't work, even if you setCIVICRM_SETTINGS
:It would be nice if civix could provide better error reporting or guidance in this case. I'm going to edit the wiki page to emphasize this, but having help directly in the tool would be even better.