CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fresh install breaks drupal
Pages: [1]

Author Topic: Fresh install breaks drupal  (Read 1086 times)

nnangeroni

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.20
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Fresh install breaks drupal
April 05, 2010, 09:59:13 am
I'm installing CiviCRM 3.1 on a server where I was able to install it under Joomla, but since the Joomla access controls aren't working in CiviCRM, I'm now trying to install it under Drupal 6.x.  
But when CiviCRM reports that it has installed itself successfully, it also reports, under "Use the Configuration Checklist to review and configure settings for your new site", the following:
DB_DataObject Error: DB Error: connect failed

Subsequently, every other drupal page load fails with the same error on an otherwise blank page.
I've tried this fresh install twice with the same result.  

To get the install (on a shared server) to proceed properly, I was forced to manually modify two files:
   drupal/sites/all/modules/civicrm/install/civicrm.php
   drupal/sites/all/modules/civicrm/templates/CRM/common/civicrm.settings.php.tpl

...in both cases, replacing the string:
  "username:password@server/database?new_link=true";
with
  "username:password@tcp(server)/database?new_link=true";
...in order to get the installer to interact with the database, because my host requires this for access:
  localhost:/tmp/mysql5.sock

I had to do the same thing to install civicrm under Joomla, where it runs fine, but I'm running into a problem with running it under Drupal.  

Is my SQL access hack breaking something? 
Any ideas would be most welcome.  Thanks!
« Last Edit: April 05, 2010, 11:29:18 am by nnangeroni »

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Fresh install breaks drupal
April 06, 2010, 07:16:54 am
Quote from: nnangeroni on April 05, 2010, 09:59:13 am
To get the install (on a shared server) to proceed properly, I was forced to manually modify two files:
   drupal/sites/all/modules/civicrm/install/civicrm.php
   drupal/sites/all/modules/civicrm/templates/CRM/common/civicrm.settings.php.tpl

...in both cases, replacing the string:
  "username:password@server/database?new_link=true";
with
  "username:password@tcp(server)/database?new_link=true";
...in order to get the installer to interact with the database, because my host requires this for access:
  localhost:/tmp/mysql5.sock


Please try doing this fix also in drupal/sites/default/civicrm.settings.php and see whether it makes any difference.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

nnangeroni

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
  • CiviCRM version: 3.4.0
  • CMS version: Drupal 6.20
  • MySQL version: 5.5.x
  • PHP version: 5.3.x
Re: Fresh install breaks drupal
April 06, 2010, 08:35:05 am
WOW!  That seems to have done it!  Thanks so much!

Darn, I should have found that without bothering you - thanks for your kind assistance.

Best,
Nancy

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Fresh install breaks drupal

This forum was archived on 2017-11-26.