Skip to content

Instantly share code, notes, and snippets.

Created March 30, 2016 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/2faf26db674adf1067cd77179e1b1931 to your computer and use it in GitHub Desktop.
Save anonymous/2faf26db674adf1067cd77179e1b1931 to your computer and use it in GitHub Desktop.
civicrm.config.php for CiviCRM 4.7.4 / 4.6.8.
<?php
define('CIVICRM_SETTINGS_PATH', '/var/www/public_html/administrator/components/com_civicrm/civicrm.settings.php');
$error = @include_once( '/var/www/public_html/administrator/components/com_civicrm/civicrm.settings.php' );
if ( $error == false ) {
echo "Could not load the settings file at: /var/www/public_html/administrator/components/com_civicrm/civicrm.settings.php
";
exit( );
}
// Load class loader
require_once $civicrm_root . '/CRM/Core/ClassLoader.php';
CRM_Core_ClassLoader::singleton()->register();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment