3

I tried all the day to install version 4.6.x of CiviCRM on a brand new installation of Drupal 7.39, but each time I execute the installation here:

http://<your_drupal_home>/sites/all/modules/civicrm/install/index.php

I get a blank page and the following error in my logs :

PHP Fatal error: Class 'CRM_Core_Config' not found in /var/www/xxxx/sites/all/modules/civicrm/install/index.php on line 142

The method I used to install is simply downloading the compressed tarball and untaring it in the folder /var/www/xxxx/sites/all/modules/, and this after just having completed the installation of Drupal.

My confiuration is :

  • Debian GNU/Linux 8 (jessie) server with a private IP

  • Apache/2.4.10 (Debian)

  • PHP Version 5.6.7-1 (with all prerequisites except using the PHP's bundled version of PCRE for which I cannot guarantee it has the unicode properties support)

  • Content of the VirtualHost :

 <VirtualHost 192.168.1.203:80>
     ServerName xxxx
     SetEnv CODE_SITE xxxx
     DocumentRoot /var/www/xxxx  
     php_admin_flag  engine on
     php_admin_value include_path "/var/www/xxxx/"
</VirtualHost>

EDIT 1

Nom I am sure that the PCRE version bundled in my PHP instance has the unicode properties support option enabled, since I could sucessfully execute (with no warnings) : if(preg_match('/^\p{Arabic}+$/u', 'ﻎﺤﺤﺤﺤﺤﺣ')) echo 'OK'; else echo 'KOOOOOO' and it displayed OK

Does anyone have any idea ?

  • Just checking, but are you certain you downloaded the correct version of CiviCRM (for Drupal 7, not Drupal 6 or another CMS)? – Laryn - CEDC.org Aug 26 '15 at 14:50
  • also check file permissions are correct before beginning installation process... – Tapash Aug 26 '15 at 14:58
  • @Laryn Yes, I installed the right version, I even installed and uninstalled it a lot of times (from download.civicrm.org/civicrm-4.6.8-drupal.tar.gz) – Kesako Gozaimasu Aug 26 '15 at 15:20
  • @KesakoGozaimasu Do you get the installation screen, or the error screen immediately? – Laryn - CEDC.org Aug 26 '15 at 15:21
  • @Tapash yes, I put all the permissions "rwx" for "www-data" user and group – Kesako Gozaimasu Aug 26 '15 at 15:23
3

I finally succeeded to find the solution!

It was the VirtualHost's include_path the problem! In fact it seems that CiviCRM's install script needs to add paths in it, and if it is already set, it cannot be modified with the PHP's native function set_include_path(void).

So, I only had to comment the VirtualHost's include_path, and it worked!

My VirtualHost looks like that now:

 <VirtualHost 192.168.1.203:80>
     ServerName xxxx
     SetEnv CODE_SITE xxxx
     DocumentRoot /var/www/xxxx  
     php_admin_flag  engine on
     #php_admin_value include_path "/var/www/xxxx/" => this line must be deleted
</VirtualHost>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.