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) »
  • parse error
Pages: [1] 2

Author Topic: parse error  (Read 9524 times)

sharique

  • Guest
parse error
July 13, 2007, 06:01:41 pm

I'm getting parse error
Parse error: syntax error, unexpected T_STRING in D:\Install\C\xampp\htdocs\ifoss\sites\default\civicrm.settings.php on line 149

I'm using xampp 1.6.1 with updated zend optimiser to 3.2.8

 Here is the civicrm.settings.php file . . .
I have highlighted (bold) the line 149.
---

<?php
/**
 * CiviCRM Configuration File - v1.7
 */

/**
 * Content Management System (CMS) Host:
 *
 * CiviCRM can be hosted in either Drupal or Joomla.
 *
 * Settings for Drupal 5.1:
 *      define( 'CIVICRM_UF'        , 'Drupal' );
 *      define( 'CIVICRM_UF_VERSION', '5.1' );
 *      define( 'CIVICRM_UF_URLVAR' , 'q'  );
 *
 * For Drupal 4.7.x, same as above except
 *      define( 'CIVICRM_UF_VERSION', '4.7' );
 *
 * Settings for Joomla 1.0.x and 1.5.x:
 *      define( 'CIVICRM_UF'        , 'Joomla' );
 *      define( 'CIVICRM_UF_VERSION', '1' );
 *      define( 'CIVICRM_UF_URLVAR' , 'task'  );
 */

define( 'CIVICRM_UF'               , 'Drupal'        );
define( 'CIVICRM_UF_VERSION'       , '5.1' );
define( 'CIVICRM_UF_URLVAR'        , ''  );

/**
 * Content Management System (CMS) Datasource:
 *
 * Update this setting with your CMS (Drupal or Joomla) database username, server and DB name.
 * Datasource (DSN) format:
 *      define( 'CIVICRM_UF_DSN', 'mysql://cms_db_username:cms_db_password@db_server/cms_database?new_link=true');
 */

define( 'CIVICRM_UF_DSN'           , 'mysqli://ifoss:ifoss@localhost/ifoss?new_link=true' );

/**
 * Content Management System (CMS) User Table-name:
 *
 * Update the CIVICRM_UF_USERSTABLENAME if needed to match the name of the table
 * where the CMS user data is stored. Default for Drupal installs is 'users'.
 * If you are using table-prefixing for the users table, you must enter the tablename
 * with the prefix. Default table name for Joomla - 'jos_users'. For Mambo - 'mos_users'.
 */

define( 'CIVICRM_UF_USERSTABLENAME', 'users' );

/**
 * CiviCRM Database Settings
 *
 * MySQL Version:
 * CiviCRM requires MySQL version 4.1 or greater.
 * IMPORTANT: Enter closest dot release to your installed version. 4.1, 5.0 are all valid examples. Do NOT
 * specify minor revision (second dot) - 4.1.2 is NOT a valid value for this setting.
 *
 * Database URL (CIVICRM_DSN) for CiviCRM Data:
 * Database URL format:
 *      define( 'CIVICRM_DSN', 'mysql://crm_db_username:crm_db_password@db_server/crm_database?new_link=true');
 *
 * Drupal and CiviCRM can share the same database, or can be installed into separate databases.
 *
 * EXAMPLE: Drupal and CiviCRM running in the same database...
 *      DB Name = drupal, DB User = drupal
 *      define( 'CIVICRM_DSN'         , 'mysql://drupal:YOUR_PASSWORD@localhost/drupal?new_link=true' );
 *
 * EXAMPLE: Drupal and CiviCRM running in separate databases...
 *      Drupal  DB Name = drupal, DB User = drupal
 *      CiviCRM DB Name = civicrm, CiviCRM DB User = civicrm
 *      define( 'CIVICRM_DSN'         , 'mysql://civicrm:YOUR_PASSWORD@localhost/civicrm?new_link=true' );
 *
 * MySQL Path:
 * This stores the installed path of mysql. You will need to verify and modify this value if you are
 * planning on using CiviCRMs built-in Database Backup utility. If you have shell access, you may be
 * able to query the path by using one of the following commands:
 * $ whereis mysql
 * $ type mysql
 *
 */
 
define( 'CIVICRM_MYSQL_VERSION', 4.1 );
define( 'CIVICRM_DSN'          , 'mysql://ifoss:ifoss@localhost/ifoss?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', 'C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin' );

/**
 * File System Paths:
 *
 * $civicrm_root is the file system path on your server where the civicrm
 * code is installed. Use an ABSOLUTE path (not a RELATIVE path) for this setting.
 *
 * CIVICRM_TEMPLATE_COMPILEDIR is the file system path where compiled templates are stored.
 * These sub-directories and files are temporary caches and will be recreated automatically
 * if deleted.
 *
 * IMPORTANT: The COMPILEDIR directory must exist,
 * and your web server must have read/write access to these directories.
 *
 *
 * EXAMPLE - CivicSpace / Drupal:
 * 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 CIVICRM_TEMPLATE_COMPILEDIR would be:
 *      define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/civicspace/files/civicrm/templates_c/' );
 *
 * EXAMPLE - Joomla Installations:
 * If the path to the Joomla home directory is /var/www/htdocs/joomla
 * the $civicrm_root setting would be:
 *      $civicrm_root = '/var/www/htdocs/joomla/administrator/components/com_civicrm/civicrm/';
 *
 * the CIVICRM_TEMPLATE_COMPILEDIR would be:
 *      define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/joomla/media/civicrm/templates_c/' );
 *
 */

global $civicrm_root;

$civicrm_root = 'D:/Install/C/xampp/htdocs/ifoss/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'D:\\Install\\C\\xampp\\htdocs\\ifoss\\files\\civicrm\\templates_c\' );

/**
 * Site URLs:
 *
 * This section defines absolute and relative URLs to access the host CMS (Drupal or Joomla)
 * resources.
 *
 * IMPORTANT: Trailing slashes should be used on all URL settings.
 *
 * EXAMPLE - Drupal Installations:
 * If your site\'s home url is http://www.example.com/drupal/
 * these variables would be set as below. Modify as needed for your install.
 *
 * CIVICRM_UF_BASEURL - home URL for your site:
 *      define( \'CIVICRM_UF_BASEURL\' , \'http://www.example.com/drupal/\' );
 *
 * EXAMPLE - Joomla Installations:
 * If your site\'s home url is http://www.example.com/joomla/
 *
 * CIVICRM_UF_BASEURL - home URL for your site:
 * Administration site:
 *      define( \'CIVICRM_UF_BASEURL\' , \'http://www.example.com/joomla/administrator/\' );
 * Front-end site:
 *      define( \'CIVICRM_UF_BASEURL\' , \'http://www.example.com/joomla/\' );
 *
 */
 
define( 'CIVICRM_UF_BASEURL'      , 'http://localhost/ifoss/' );

/**
 * SMTP Server Authentication Password:
 *
 * If your SMTP server requires authentication, you will enable that and enter the
 * Username from Administer CiviCRM >> Global Settings >> SMTP. Then enter the
 * authentication Password below.
 *
 */
define( 'CIVICRM_SMTP_PASSWORD', ''    );

/**
 * Payment Processor Passwords and/or Signature:
 *
 * Select and configure your payment processing service from Administer CiviCRM >> Global Settings >>
 * Payment Processor. For most services, you will also need to enter a Password and/or a Signature
 * or key below. These values are not stored separately (not in your database) for security reasons.
 */

/*
 * TEST Payment Server (Sandbox) Settings:
 * NOTE: Not all settings are used by all payment processors and authentication credential methods.
 *
 */

/* API Password
 * PayPal API Signature credential: API Password value (from your PayPal sandbox account - View API Signature screen).
 * PayPal Pro or Express with API Certificate credential: API Password value (from your PayPal sandbox account).
 * Moneris: API Token value.
 */
 
define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_PASSWORD'      , '' );

/* API Signature or Key
 * PayPal API Signature credential: Use the API Signature value (from your PayPal account - View API Signature screen).
 * PayPal API Certificate credential: Go to Administer CiviCRM >> Create PayPal API Profile to generate this key value.
 * Moneris: Use the storeid value.
 * Authorize.net: Use the API Transaction Key.
 */
 
define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_KEY'           , '' );

/* API Subject
 * PayPal API Signature credential only: Use this setting to process transactions in behalf of a 3rd party.
 */
 
define( 'CIVICRM_CONTRIBUTE_PAYMENT_TEST_SUBJECT'       , '' );

/*
 * LIVE Payment Server Settings:
 * NOTE: Not all settings are used by all payment processors and authentication credential methods.
 *
 */

/* API Password
 * PayPal Pro or Express with API Signature credential: API Password value (from your PayPal account - View API Signature screen)
 * PayPal Pro or Express with API Certificate credential: API Password value (from your PayPal account).
 * Moneris: API Token value.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_PASSWORD'      , '' );

/* API Signature or Key
 * PayPal Pro or Express with API Signature credential: Use the API Signature value (from your PayPal account - View API Signature screen).
 * PayPal Pro or Express with API Certificate credential: Go to Administer CiviCRM >> Create PayPal API Profile to generate this key value.
 * Moneris: Use the storeid value.
 * Authorize.net: Use the API Transaction Key.
 */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_KEY'           , '' );

/* API Subject
 * PayPal Pro or Express with API Signature credential only: Use this setting to process transactions in behalf of a 3rd party.
  */

define( 'CIVICRM_CONTRIBUTE_PAYMENT_SUBJECT'       , '' );

/**
 * Multi-site Support
 *
 * CiviCRM uses Domain ID keys to allow you to store separate data sets for multiple sites
 * using the same codebase.
 *
 * Refer to the 'Multi-site Support' section of the Installation Guide for more info.
 */

define('CIVICRM_DOMAIN_ID' , 1 );

/**
 * Joomla! Front-end Component Flag
 * If this configuration file is being used by a Joomla! front-end CiviCRM component
 * instance, set this value to 1.
 */

define( 'CIVICRM_UF_FRONTEND', 0 );

/**
 *
 * Do not change anything below this line. Keep as is
 *
 */

$include_path = '.'        . PATH_SEPARATOR .
                $civicrm_root . PATH_SEPARATOR .
                $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR .
                get_include_path( );
set_include_path( $include_path );

define( 'CIVICRM_SMARTYDIR'  , $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . DIRECTORY_SEPARATOR . 'Smarty' . DIRECTORY_SEPARATOR );
define( 'CIVICRM_TEST_DIR'   , $civicrm_root . DIRECTORY_SEPARATOR . 'test'   . DIRECTORY_SEPARATOR );
define( 'CIVICRM_DAO_DEBUG'  , 0 );
define( 'CIVICRM_TEMPLATEDIR', $civicrm_root . DIRECTORY_SEPARATOR . 'templates'   );
define( 'CIVICRM_PLUGINSDIR' , $civicrm_root . DIRECTORY_SEPARATOR . 'CRM' . DIRECTORY_SEPARATOR . 'Core' . DIRECTORY_SEPARATOR . 'Smarty' . DIRECTORY_SEPARATOR . 'plugins' );

define( 'CIVICRM_GETTEXT_CODESET'    , 'utf-8'   );
define( 'CIVICRM_GETTEXT_DOMAIN'     , 'civicrm' );
define( 'CIVICRM_GETTEXT_RESOURCEDIR', $civicrm_root . DIRECTORY_SEPARATOR . 'l10n' );

if ( function_exists( 'variable_get' ) && variable_get('clean_url', '0') != '0' ) {
    define( 'CIVICRM_CLEANURL', 1 );
} else {
    define( 'CIVICRM_CLEANURL', 0 );
}

// force PHP to auto-detect Mac line endings
ini_set('auto_detect_line_endings', '1');

// make sure the memory_limit is at least 24 MiB
$memLimitString = trim(ini_get('memory_limit'));
$memLimitUnit = strtolower(substr($memLimitString, -1));
$memLimit = (int) $memLimitString;
switch ($memLimitUnit) {
    case 'g': $memLimit *= 1024;
    case 'm': $memLimit *= 1024;
    case 'k': $memLimit *= 1024;
}
if ($memLimit >= 0 and $memLimit < 25165824) {
    ini_set('memory_limit', '24M');
}

?>

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: parse error
July 13, 2007, 07:24:01 pm
Not sure if it's the right answer, but it's still worth trying (cannot verify it myself, since I don't have access to xamp platform): the problem might be in this line

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'D:\\Install\\C\\xampp\\htdocs\\ifoss\\files\\civicrm\\templates_c\' );

Try changing it to:

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'D:\\Install\\C\\xampp\\htdocs\\ifoss\\files\\civicrm\\templates_c' );

or

define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'D:\\Install\\C\\xampp\\htdocs\\ifoss\\files\\civicrm\\templates_c\\' );

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

jn122

  • Guest
Same problem
July 25, 2007, 06:29:10 am
Returning a [Parse error: syntax error, unexpected T_STRING on line 149]. I'm wondering if sharique had any luck with the above fix? No joy with my attempt. 

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: parse error
July 25, 2007, 12:29:26 pm

This is a php4 / php5 issue. You are running php5 code on a php4 server

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

jn122

  • Guest
Re: parse error
July 25, 2007, 04:56:24 pm
Thanks so much for the reply: this puzzles me (unfortunately I'm not at the relevant machine at the moment not verify) but I completely upgraded XAMPP (1.63 release) running MySQL 5.0.45 and PHP 5.2.3 and installed the php5 civic install.

Requires some sleuthing on my part. Will report back. 

jn122

  • Guest
Re: parse error
July 28, 2007, 05:02:00 am
Okay this is really busting my %#^^

as far as I can tell this is NOT a php incompatibility:

Running php 5.2.3 on mysql 5.0.45

Have tried all fixes on the wiki notably:

http://wiki.civicrm.org/confluence/display/CRMDOC/Error+Function
http://wiki.civicrm.org/confluence/display/CRMDOC/Error+Config
http://wiki.civicrm.org/confluence/display/CRMDOC/Error+include_path

any further suggestions?

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: parse error
July 28, 2007, 02:57:44 pm

What file is it returning a parse error on?

also can u cut-n-paste lines: 145-155 from that file

thanx

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

jn122

  • Guest
Re: parse error
July 28, 2007, 10:07:20 pm
Hi lobo, thanks for the reply, much appreciated

The last install broke me and I reinstalled fresh Drupal and Civic  and am now throwing this:

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.;C:\xampp\php\pear\') in C:\xampp\htdocs\xampp\icrm\sites\all\modules\civicrm\drupal\civicrm.module on line 224. I followed the wiki re this error yet no joy. There is every chance I have some errors in the settings file as I have tried every possible combination of possible path syntax. Maybe you can spot the obvious from these lines in the settings file:

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


define( 'CIVICRM_UF_USERSTABLENAME', 'users' );


define( 'CIVICRM_MYSQL_VERSION', 5.0 );
define( 'CIVICRM_DSN'          , 'mysql://root:password@localhost/iccrm?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', 'C://xampp/mysql/bin/' );

** I am using a shared database

global $civicrm_root;

$civicrm_root = 'C:/xampp/htdocs/icrm/sites/all/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:/xampp/htdocs/icrm/files/templates_c/' );


define( 'CIVICRM_UF_BASEURL'      , 'http://localhost/xampp/icrm/' );

Thanks for your time lobo, mucho gracias

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: parse error
July 29, 2007, 02:51:39 pm

Based on the include_path value reported by the system and your civicrm_root settings in your civicrm.settings.php file, i suspect it is not reading your civicrm.settings.php file

is this file located in: sites/default (in the same directory as your drupal settings.php file?)

If so, can u put a print and exit at the top of the file and ensure the file is being read?

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

jn122

  • Guest
Re: parse error
July 30, 2007, 04:07:41 am
Hi again lobo,

settings file is definitely where it should be, next to the drupal settings.php in sites/default/

I'n not sure how to insert the print and exit code..

In the civicrm folder (under sites/all/modules/ there is a civicrm.config.php file should it be there?

<?php

/**
 * This function has been copied from DRUPAL_ROOT/includes/bootstrap.inc
 */

/**
 * Locate the appropriate configuration file.
 *
 * Try finding a matching configuration directory by stripping the
 * website's hostname from left to right and pathname from right to
 * left.  The first configuration file found will be used, the
 * remaining will ignored.  If no configuration file is found,
 * return a default value '$confdir/default'.
 *
 * Example for a fictitious site installed at
 * http://www.drupal.org/mysite/test/ the 'settings.php' is
 * searched in the following directories:
 *
 *  1. $confdir/www.drupal.org.mysite.test
 *  2. $confdir/drupal.org.mysite.test
 *  3. $confdir/org.mysite.test
 *
 *  4. $confdir/www.drupal.org.mysite
 *  5. $confdir/drupal.org.mysite
 *  6. $confdir/org.mysite
 *
 *  7. $confdir/www.drupal.org
 *  8. $confdir/drupal.org
 *  9. $confdir/org
 *
 * 10. $confdir/default
 */
function conf_init() {
    static $conf = '';

    if ($conf) {
        return $conf;
    }

    /**
     * We are within the civicrm module, the drupal root is 2 links
     * above us, so use that
     */
    $currentDir = dirname( __FILE__ ) . '/';
    if ( file_exists( $currentDir . 'settings_location.php' ) ) {
        include $currentDir . 'settings_location.php';
    }
 
    if ( defined( 'CIVICRM_CONFDIR' ) ) {
        $confdir = CIVICRM_CONFDIR;
    } else {
        // make it relative to civicrm.config.php, else php makes it relative
        // to the script that invokes it
        // simple check to see if this is under sites/all or just modules
        if ( strpos( $currentDir, 'sites/all/modules' ) !== false ) {
            // seems like this is in drupal5 dir location
            $confdir = $currentDir . '../../..';
        } else {
            $confdir = $currentDir . '../../sites';
        }
    }

    if ( ! file_exists( $confdir ) ) {
        echo "Could not find valid configuration dir, best guess: $confdir\n";
        exit( );
    }
           
    $phpSelf  = array_key_exists( 'PHP_SELF' , $_SERVER ) ? $_SERVER['PHP_SELF' ] : '';
    $httpHost = array_key_exists( 'HTTP_HOST', $_SERVER ) ? $_SERVER['HTTP_HOST'] : '';

    $uri    = explode('/', $phpSelf );
    $server = explode('.', implode('.', array_reverse(explode(':', rtrim($httpHost, '.')))));
    for ($i = count($uri) - 1; $i > 0; $i--) {
        for ($j = count($server); $j > 0; $j--) {
            $dir = implode('.', array_slice($server, -$j)) . implode('.', array_slice($uri, 0, $i));
            if (file_exists("$confdir/$dir/civicrm.settings.php")) {
                $conf = "$confdir/$dir";
                return $conf;
            }
        }
    }

    // FIXME: problem spot for Drupal 5.1 config dir layout
    $conf = "$confdir/default";
    return $conf;
}

include_once conf_init( ) . '/civicrm.settings.php';

?>

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: parse error
July 30, 2007, 11:28:21 am

yes, civicrm.config.php is in its right place

at the top of your civicrm.settings.php AFTER:

<?php

ADD:

echo "In civicrm.settings.php<p>";
exit( );

and see what happens

also can u change:

$civicrm_root = 'C:/xampp/htdocs/icrm/sites/all/modules/civicrm/';

to

$civicrm_root = "C:\\xampp\\htdocs\\icr\\sites\\all\\modules\\civicrm/";

thanx

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

jn122

  • Guest
Re: parse error
July 31, 2007, 03:29:52 am
Sorry lobo, both changes had no effect

msn

  • I post frequently
  • ***
  • Posts: 152
  • Karma: 6
  • Please talk to the other site
Re: parse error
July 31, 2007, 05:46:26 am
I think your root must start from the server base, not from the windows install

Example:
$civicrm_root = '/htdocs/............/.../...../civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/htdocs/..../templates_c/' );


regards
Martin

jn122

  • Guest
Re: parse error
July 31, 2007, 05:16:13 pm
Hi Martin, thanks for the assistance. I am pretty sure I have tried all possible path syntax combinations but will retry with the server base. Cheers.

jn122

  • Guest
Re: parse error
August 01, 2007, 07:37:30 pm
Thanks everyone for your assistance - still no joy and another fresh install. I have tried all possible syntax so I'm wondering if anyone would kindly cast their eye over this config and give me a yell if anything blindingly obvious stands out. Thanks in advance.

<?php
/**
 * CiviCRM Configuration File - v1.8
 */

/**
 * Content Management System (CMS) Host:
 *
 * CiviCRM can be hosted in either Drupal or Joomla.
 *
 * Settings for Drupal 5.1:
 *      define( 'CIVICRM_UF'        , 'Drupal' );
 *      define( 'CIVICRM_UF_VERSION', '5.1' );
 *      define( 'CIVICRM_UF_URLVAR' , 'q'  );
 *
 * For Drupal 4.7.x, same as above except
 *      define( 'CIVICRM_UF_VERSION', '4.7' );
 *
 * Settings for Joomla 1.0.x and 1.5.x:
 *      define( 'CIVICRM_UF'        , 'Joomla' );
 *      define( 'CIVICRM_UF_VERSION', '1' );
 *      define( 'CIVICRM_UF_URLVAR' , 'task'  );
 *
 * Settings for Standalone:
 *      define( 'CIVICRM_UF'   , 'Standalone');
 *      (Leave out CIVICRM_UF_VERSION.)
 *      define( 'CIVICRM_UF_URLVAR', 'q');
 *
 *
 */

define( 'CIVICRM_UF'               , 'Drupal'        );
define( 'CIVICRM_UF_VERSION'       , '5.1' );
define( 'CIVICRM_UF_URLVAR'        , 'q'  );

/**
 * Content Management System (CMS) Datasource:
 *
 * Update this setting with your CMS (Drupal or Joomla) database username, server and DB name. Comment it out if using CiviCRM standalone.
 * Datasource (DSN) format:
 *      define( 'CIVICRM_UF_DSN', 'mysql://cms_db_username:cms_db_password@db_server/cms_database?new_link=true');
 */

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

/**
 * Content Management System (CMS) User Table-name:
 *
 * Update the CIVICRM_UF_USERSTABLENAME if needed to match the name of the table
 * where the CMS user data is stored. Default for Drupal and Standalone installs is 'users'.
 * If you are using table-prefixing for the users table, you must enter the tablename
 * with the prefix. Default table name for Joomla - 'jos_users'. For Mambo - 'mos_users'.
 */

define( 'CIVICRM_UF_USERSTABLENAME', 'users' );

/**
 * CiviCRM Database Settings
 *
 * MySQL Version:
 * CiviCRM requires MySQL version 4.1 or greater.
 * IMPORTANT: Enter closest dot release to your installed version. 4.1, 5.0 are all valid examples. Do NOT
 * specify minor revision (second dot) - 4.1.2 is NOT a valid value for this setting.
 *
 * Database URL (CIVICRM_DSN) for CiviCRM Data:
 * Database URL format:
 *      define( 'CIVICRM_DSN', 'mysql://crm_db_username:crm_db_password@db_server/crm_database?new_link=true');
 *
 * Drupal and CiviCRM can share the same database, or can be installed into separate databases.
 *
 * EXAMPLE: Drupal and CiviCRM running in the same database...
 *      DB Name = drupal, DB User = drupal
 *      define( 'CIVICRM_DSN'         , 'mysql://drupal:YOUR_PASSWORD@localhost/drupal?new_link=true' );
 *
 * EXAMPLE: Drupal and CiviCRM running in separate databases...
 *      Drupal  DB Name = drupal, DB User = drupal
 *      CiviCRM DB Name = civicrm, CiviCRM DB User = civicrm
 *      define( 'CIVICRM_DSN'         , 'mysql://root:fin14400@localhost/civicrm?new_link=true' );
 *
 * MySQL Path:
 * This stores the installed path of mysql. You will need to verify and modify this value if you are
 * planning on using CiviCRMs built-in Database Backup utility. If you have shell access, you may be
 * able to query the path by using one of the following commands:
 * $ whereis mysql
 * $ type mysql
 *
 */
 
define( 'CIVICRM_MYSQL_VERSION', 5.0 );
define( 'CIVICRM_DSN'          , 'mysql://root:MYPASS@localhost/ic?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', 'C:\\xampp\\mysql\\bin\' );

/**
 * File System Paths:
 *
 * $civicrm_root is the file system path on your server where the civicrm
 * code is installed. Use an ABSOLUTE path (not a RELATIVE path) for this setting.
 *
 * CIVICRM_TEMPLATE_COMPILEDIR is the file system path where compiled templates are stored.
 * These sub-directories and files are temporary caches and will be recreated automatically
 * if deleted.
 *
 * IMPORTANT: The COMPILEDIR directory must exist,
 * and your web server must have read/write access to these directories.
 *
 *
 * EXAMPLE - CivicSpace / Drupal:
 * 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 CIVICRM_TEMPLATE_COMPILEDIR would be:
 *      define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/civicspace/files/civicrm/templates_c/' );
 *
 * EXAMPLE - Joomla Installations:
 * If the path to the Joomla home directory is /var/www/htdocs/joomla
 * the $civicrm_root setting would be:
 *      $civicrm_root = '/var/www/htdocs/joomla/administrator/components/com_civicrm/civicrm/';
 *
 * the CIVICRM_TEMPLATE_COMPILEDIR would be:
 *      define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/joomla/media/civicrm/templates_c/' );
 *
 * EXAMPLE - Standalone Installations:
 * If the path to the Standalone home directory is /var/www/htdocs/civicrm
 * the $civicrm_root setting would be:
 *      $civicrm_root = '/var/www/htdocs/ic/sites/all/modules/civicrm/';
 *
 * the CIVICRM_TEMPLATE_COMPILEDIR would be:
 *      define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/var/www/htdocs/civicrm/templates_c/' );
 */

global $civicrm_root;

$civicrm_root = '/htdocs/xampp/ic/sites/all/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', ' '/htdocs/xampp/ic/files/civicrm/templates_c/' );

/**
 * Site URLs:
 *
 * This section defines absolute and relative URLs to access the host CMS (Drupal or Joomla)
 * resources. Also you can use Standalone to access the host CMS resources.
 *
 * IMPORTANT: Trailing slashes should be used on all URL settings.
 *
 *
 * EXAMPLE - Drupal Installations:
 * If your site's home url is http://www.example.com/drupal/
 * these variables would be set as below. Modify as needed for your install.
 *
 * CIVICRM_UF_BASEURL - home URL for your site:
 *      define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/drupal/' );
 *
 * EXAMPLE - Joomla Installations:
 * If your site's home url is http://www.example.com/joomla/
 *
 * CIVICRM_UF_BASEURL - home URL for your site:
 * Administration site:
 *      define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/joomla/administrator/' );
 * Front-end site:
 *      define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/joomla/' );
 *
 * EXAMPLE - Standalone Installations:
 * If your site's home url is http://www.examle.com/civicrm/
 *
 * CIVICRM_UF_BASEURL - home URL for your site:
 *      define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/civicrm/standalone/' );
 */
 
define( 'CIVICRM_UF_BASEURL'      , 'http://localhost/xampp/ic/' );

/**

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • parse error

This forum was archived on 2017-11-26.