Failed opening required 'CRM/Core/Config.php'
When enabling CiviCRM for the first time using Drupal as front end, you may get a fatal error that disables your site like:
The most likely cause for this is a misconfigured civicrm.settings.php. In particular
- check that civicrm.settings.php is in the right place (in the same directory as your drupal settings.php)
- check that the setting for $civicrm_root is correct. Note that using aliases or links may not work use the absolute path.
Also, check that there is no duplicate civicrm.settings.php file in its original directory /modules/civicrm. This may happen if you have simply unzipped the package directly into the modules directory and copied civicrm.settings.php.
If you are sure that all the root path, MySQL passwords are correct mentioned in civicrm.settings.php that is uploaded at modules/cvicrm and still you are getting the same error kindly do the following:
Upload the civicrm.settings.php to :
drupal/ sites/default
too along with the cvicm folder.
Cheers - Ashutosh - ashutosh@scientica.com
I need to correct my earlier comment, do not upload the civicrm folder to the drupal/sites/default
Only upload civicrm.settings.php to that folder where settings.php file is also present. The same file also needs to be present at your civicrm folder.
Please check that you have created following directories and their attributes are set to 777:
crm_docs; persist; template_c; upload
After creating these directories add the following path in the civicrm.settings.php file as follows:
$civicrm_root = '/your_drupal_server_path/modules/civicrm/' ;
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/your_drupal_server_path/modules/civicrm/templates_c/' );
define( 'CIVICRM_UF_BASEURL', 'http://www.your_drupal_server_path/' );
define( 'CIVICRM_UPLOADDIR' , '/your_drupal_server_path/modules/civicrm/upload/' );
define( 'CIVICRM_CUSTOM_FILE_UPLOADDIR' , '/your_drupal_server_path/modules/civicrm/crm_docs/' );
define( 'CIVICRM_UF_RESOURCEURL' , 'http://your_drupal_server_path/modules/civicrm/' );
define( 'CIVICRM_IMAGE_UPLOADURL' , 'http://your_drupal_server_path/modules/civicrm/persist/' );
and then upload it to the directories stated in my earlier comments.