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) »
  • ERROR MESSAGE: "You need to define CIVICRM_DSN in civicrm.settings.php"
Pages: [1]

Author Topic: ERROR MESSAGE: "You need to define CIVICRM_DSN in civicrm.settings.php"  (Read 2752 times)

liza.s

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
ERROR MESSAGE: "You need to define CIVICRM_DSN in civicrm.settings.php"
May 26, 2013, 01:10:28 pm
i am following the installation instructions found here:

http://wiki.civicrm.org/confluence/display/CRMDOC43/Drupal+Installation+Guide+for+CiviCRM+4.3+-+Drupal+7#

because, as i am installing CIVICRM in a multisite Drupal installation on my localhost sandbox [XAMPP, PHP 5.3.8, MySQL 5.0.8], it says in the Multisite Installation page,

Quote
Say site1.example.com which would be same as any other normal civicrm installation. Then enable multisite by visiting civicrm/admin/setting/preferences/multisite?reset=1

so i am trying to install CiviCRM as any other normal civicrm installation but every single time it gives a white screen in the middle of the installation with the message :

Quote
"You need to define CIVICRM_DSN in civicrm.settings.php"

what is odd about this is that when i go to civicrm.settings.php, the CIVICRM_DSN has already been created by the installation process.  here it is (altered, for security reasons):

Quote
define( 'CIVICRM_DSN'          , 'mysql://USER:PASSWORD@localhost/CIVICRMDB?new_link=true' );

the way am trying to install this would be the way any Drupal multisite installation would happen: i have my codebase with it's default folder but the installation is happening inside of a site folder NOT at the base of the codebase. meaning:

- even though CiviCRM places it's settings automatically at sites/default,

- am running the installation from sites/DOMAIN

i have no base site running from sites/default.

is this the reason why it's unable to finish the installation?


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: ERROR MESSAGE: "You need to define CIVICRM_DSN in civicrm.settings.php"
May 27, 2013, 01:59:50 am
Quote from: liza.s on May 26, 2013, 01:10:28 pm
i am following the installation instructions found here: is this the reason why it's unable to finish the installation?

Yes. Are there other civicrm.settings.php files anywhere? Where? What is in them?

 
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

liza.s

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
Re: ERROR MESSAGE: "You need to define CIVICRM_DSN in civicrm.settings.php"
May 27, 2013, 10:21:24 am
no, that's what's so weird. i'm trying to install the "base" civicrm for the drupal multisite as a site in itself. the installation outputs the one civivcrm.settings.php file and then throws that error message.


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: ERROR MESSAGE: "You need to define CIVICRM_DSN in civicrm.settings.php"
May 27, 2013, 04:51:52 pm

remove the civicrm.settings.php file and try the install again

the installer should detect that civicrm is in sites/SITENAME/modules and place the settings files in the right directory

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • ERROR MESSAGE: "You need to define CIVICRM_DSN in civicrm.settings.php"

This forum was archived on 2017-11-26.