Sunday, April 29, 2007

Installing CiviCRM 1.7 with Drupal

I have Drupal installed in XAMPP on Windows Vista.

Drupal is installed in 'drupal' database. CiviCRM installed in 'civicrm' database. XAMP creates a default user 'root' with blank password for any new database created in MySQL.

I could follow the steps to install CiviCRM given at http://wiki.civicrm.org/confluence/display/CRMDOC/Install+CiviCRM+1.7+for+Drupal. However, changes to be made in civicrm.settings.php took some time. So, I am posting the code changes here.

Drupal version, user... to be updated with below changes:
define( 'CIVICRM_UF', 'Drupal');
define( 'CIVICRM_UF_VERSION', '5.1');
define( 'CIVICRM_UF_URLVAR', 'q');

define( 'CIVICRM_UF_DSN', 'mysql://root:@localhost/drupal?new_link=true');

CiviCRM related:
define( 'CIVICRM_MYSQL_VERSION', 4.1);
define( 'CIVICRM_DSN', 'mysql://root:@localhost/civicrm?new_link=true');
define( 'CIVICRM_MYSQL_PATH', '/usr/bin/');

$civicrm_root = './sites/all/modules/civicrm';

define( 'CIVICRM_TEMPLATE_COMPILEDIR', './files/civicrm/templates_c');

That worked to get started!

No comments: