6

It's found in civicrm.settings.php and will be generated by the installer (or set manually depending on how your CiviCRM instance was configured). You're looking for a line that looks like this: define( 'CIVICRM_SITE_KEY', "your.site.key.is.here");


3

I replaced the full URLs in the civicrm.settings.php file with relative URLs as shown below: FROM global $civicrm_root; $civicrm_root = '/home/customer/www/example.org/public_html/sites/all/modules/civicrm'; if (!defined('CIVICRM_TEMPLATE_COMPILEDIR')) { define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/customer/www/example.org/public_html/sites/default/files/...


3

In your civicrm.setting.php update the $civicrm_root and template_c path to use /var/sites/j/example.net/public_html instead of /var/sites/c/beta.example.net/public_html/ Thanks Pradeep


2

can you add below lines in your civicrm.settings.php? global $civicrm_paths; $civicrm_paths['civicrm.root']['url'] = CIVICRM_UF_BASEURL . '/sites/all/modules/civicrm';


2

Same happened to me. On installing new test CiviCRM under WordPress. The "CiviCRM Contribution Page Widget" plugin caused same error. Civi 5.27.1, WP 5.4.2, php 7.2.24 on ubuntu 20.04 LTS


2

Parvez is right that you can use a different DATABASE but if you mean a different HOST then the answer is no. The triggers that are used don't support that.


2

Yes perfectly possible, we do it all the time. You can set the logging DSN in your settings file (CIVICRM_LOGGING_DSN) if its not set then CiviCRM falls back to the CIVICRM_DSN Sorry - just read your whole question! I would check that the user has permissions from the CIVICRM_DSN to the CIVICRM_LOGGING_DSN i.e. if the CiviCRM database user cannot access the ...


1

It's in civicrm_setting but if it's never been turned on it won't be there. But also it's more than just a setting - you would need to rebuild the schema and triggers. If you have cv installed you can do cv ev "Civi::settings()->set('logging', 1); $s = new CRM_Logging_Schema(); $s->enableLogging();" to do it from the command line manually.


1

The information provided in the docs at https://docs.civicrm.org/sysadmin/en/latest/customize/paths/ explains how to set civicrm.files in the civicrm.settings.php file.


1

Nevermind.... I was accidentally using the drush-10 and I see that drush-8 is recommended. That fixed my woes. composer require drush/drush:^8


1

I'm assuming you're talking about DEFINE statements since you mention domain id? Are you able to edit drupal's settings.php? If so you can just put those DEFINEs in there since it loads first and most of the DEFINE settings in civicrm.settings.php check for if (defined(SETTING_NAME)). If you can't edit drupal's settings.php, I haven't tested this but can ...


Only top voted, non community-wiki answers of a minimum length are eligible