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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Setting up civicrm.settings.php
Pages: [1]

Author Topic: Setting up civicrm.settings.php  (Read 1293 times)

dfspdx

  • Guest
Setting up civicrm.settings.php
December 07, 2008, 11:51:54 pm
I'd like help setting up a path to civicrm_root (Drupal 6/CiviCRM 2.1) The civicrm.setting.php template I have contains this for setting the civicrm_root:
If the path to the CivicSpace or Drupal home directory is /var/www/htdocs/civicspace
 * the $civicrm_root setting would be:
 *      $civicrm_root = '/var/www/htdocs/civicspace/modules/civicrm/';

The text to change is:
$civicrm_root = '/hsphere/local/home/#####/#####/#####/sites/all/modules/civicrm';

I've tried many variations between the first "/" and "/sites/..." None successful. I'd guess there are variation depending on localhost or remote connection (I'm using remote.)

Many thanks for any help.



Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Setting up civicrm.settings.php
December 08, 2008, 01:47:32 am
Quote
$civicrm_root = '/hsphere/local/home/#####/#####/#####/sites/all/modules/civicrm';

This is the path where you have installed civicrm.  So you can go to directory where you have copied "civicrm" and do command "pwd" and use that path.

HTh

Kurund
Found this reply helpful? Support CiviCRM

dfspdx

  • Guest
Re: Setting up civicrm.settings.php
December 08, 2008, 01:34:05 pm
Kurund,

Thank you for your reply. I've been editing civicrm.settings.php directly, since I don't do line commands (yet?).

My confusion in setting the path is mostly over the difference between using my domain name URL or the hostserver URL. Based on a template I found online, I'm now using: $civicrm_root = '/home/<my_username> (which is also the domain name before .com)/www/www/sites/all/modules/civicrm/';

That does change the result, and now the result is a long error trace ending with: " [nativecode=1146 ** Table '<my_civicrm_database>.civicrm_domain' doesn't exist]"]

So I can't tell if the error is with the _root setting or a problem with the database. Or....

Thanks again,

Doug

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Setting up civicrm.settings.php
December 08, 2008, 11:03:41 pm
Quote
That does change the result, and now the result is a long error trace ending with: " [nativecode=1146 ** Table '<my_civicrm_database>.civicrm_domain' doesn't exist]"]

check if you have correct civicrm database settings.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Setting up civicrm.settings.php

This forum was archived on 2017-11-26.