I have a dev copy of CiviCRM that I upgraded to 4.7.21. The file paths have been removed and show [civicrm.files] instead. I cannot figure out how to set [civicrm.files] so that CiviCRM can see the extend directory and other files.
Thanks!
CiviCRM Stack Exchange is a question and answer site for administrators and users of the CiviCRM Constituent Relationship Management software. It only takes a minute to sign up.
Sign up to join this communityI have a dev copy of CiviCRM that I upgraded to 4.7.21. The file paths have been removed and show [civicrm.files] instead. I cannot figure out how to set [civicrm.files] so that CiviCRM can see the extend directory and other files.
Thanks!
You can specifically set the value of [civicrm.files]
in civicrm.settings.php
with code like this:
global $civicrm_paths;
$civicrm_paths['civicrm.files'] = array(
'url' => 'https://example.com/foo',
'path' => '/var/www/example.com/foo',
);
If you don't set the value, then Civi will try to find it automatically, but this doesn't work in all configurations. (For example, if your directory structure uses symlinks, it may not resolve correctly.)
Tip: You didn't ask, but if your system is basically working, then you can inspect the value of [civicrm.files]
in a few ways:
Administer => System Settings => Directories
. Click on the main help icon.Administer => System Settings => Resource URLs
. Click on the main help icon.cv path -d [civicrm.files]
cv url -d [civicrm.files]
[civicrm.files]
, I'd say do that. I'm not sure which doc recommends abslute, but I'd guess it was written before 4.7.0. TBH, it's as much taste/circumstance as anything.
– Tim Otten
Jul 14 '17 at 3:58