Hy
I was trying to install the last CiviCrm module (civicrm-1.6.8517-drupal-php5.tar) on a Drupal 5.1 (drupal-5.1.tar) CMS.
My configuration is: MySQL Server 5.026, and PHPMyAdmin 5.018.
I'm totaly novice concerning this product so after having installed drupal correctly, I managed to install CiviCRM with the wiki documentation given by CiviCRM.
(http://wiki.civicrm.org/confluence/display/CRM/Install+CiviCRM+1.6+for+D...)

First I got this error message: "Parse error: syntax error, unexpected ',', expecting '(' in /home.13/s/o/s/sosbuena/www/modules/civicrm/drupal/civicrm.module on line 429" -> Donald A. Lobo advised me to try with the CiviCRM module for PHP4 server, what I did.

Now I got a new error message:

Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/www/modules/civicrm:/www/modules/civicrm/packages:.:/usr/local/lib/php') in /home.13/s/o/s/sosbuena/www/modules/civicrm/drupal/civicrm.module on line 227

I think that the mistake is situated in my civicrm.settings.php file.
So I join the current configuration:

define( 'CIVICRM_UF' , 'Drupal' );
define( 'CIVICRM_UF_VERSION' , '5.1' );
define( 'CIVICRM_UF_URLVAR' , 'q' );
define( 'CIVICRM_UF_DSN' , 'mysql://sosbuenadrupal:mypassword@mysql5-2/sosbuenadrupal?new_link=true' );
define( 'CIVICRM_UF_USERSTABLENAME', 'users' );
define( 'CIVICRM_MYSQL_VERSION', 4.1 );
define( 'CIVICRM_DSN' , 'mysql://sosbuenadrupal:mypassword@mysql5-2/sosbuenadrupal?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', '/usr/bin/' );
global $civicrm_root;
$civicrm_root = 'sosbuena/www/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'sosbuena/www/files/civicrm/templates_c/' );
define( 'CIVICRM_UF_BASEURL' , 'http://www.sosbuena.fr/' );
define( 'CIVICRM_SMTP_PASSWORD', 'mypassword' );
define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_PASSWORD' , '' );
define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_KEY' , '' );
define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_SUBJECT' , '' );
define( 'CIVICRM_CONTRIBUTE_PAYMENT_PASSWORD' , '' );
define( 'CIVICRM_CONTRIBUTE_PAYMENT_KEY' , '' );
define( 'CIVICRM_CONTRIBUTE_PAYMENT_SUBJECT' , '' );
define('CIVICRM_DOMAIN_ID' , 1 );
define( 'CIVICRM_UF_FRONTEND', 0 );

Server: Apache/1.3.37 (Unix)
PHP Version 4.4.4
PHP Version 5.2.1
MySQL Server 5.026
PHPMyAdmin 5.018
Host: OVH (www.ovh.com)

FTP: ftp.10startg.ovh.net: files
cgi-bin
requetes
sessions
www -> modules->civicrm
www -> sites->default->civicrm.settings.php

Please help, I've already spent 2 days on it, and I really get fed up with that!

Comments

pwolanin’s picture

I was also getting "Failed opening required 'CRM/Core/Config.php'"

After much mucking around, I found a typo in the settings file. If I recall, it was a missing or extra trailing slash, and/or misspelled path for $civicrm_root.

---
Work: BioRAFT

caprenter’s picture

It sounds like it is probably to do with your 'path to root' setting. I struggle with this each time I set up civicrm.

Both of these settings look as though they are slightly wrong:

$civicrm_root = 'sosbuena/www/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'sosbuena/www/files/civicrm/templates_c/' );

They should be 'absolute paths' and hence have a '/' at the begining of the path, e.g.
(and they should finish with a trailing slash as well!)

$civicrm_root = '/sosbuena/www/modules/civicrm/'; (note the two extra '/'s)

however, I think your path to root might be:
/home.13/s/o/s/sosbuena/www/modules/civicrm/
(you get this information from your webhosting provider, and it is given above in the error messages)

I would try that, so:
$civicrm_root = '/home.13/s/o/s/sosbuena/www/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home.13/s/o/s/sosbuena/www/files/civicrm/templates_c/' );

I can't guarantee that will work, but I think that your problem is linked to not correctly defining the 'path to root' as pwolanin said above.

Good luck!

Agent Drek’s picture

I had to go through the config file and use absolute paths for everything - I lost a lot of time futzing with the civicrm_root setting because I kept getting the error message that the include of CRM/Core/Config.php was the issue. What finally worked was setting absolute paths for not just civicrm_root but also CIVICRM_TEMPLATE_COMPILEDIR, CIVICRM_UPLOADDIR, and CIVICRM_CUSTOM_FILE_UPLOADDIR. I think this is mainly a problem for installations in hosted environments locked down with these plesk-type management tools.

Cheers,
Derek

nusrito’s picture

I want get civicrm for drupal 5.x for my project. where i have its because my project not work now, where is download civicrm for drupal 5.x.

in drupal.org , i dont know is work

please help me.....!!!!!!!!!