I want to use civicrm so i can develop a contacts database on my site but i can't work out what the difference is between civicspace and drupal - which one should i be using or do i have to use both of them in order for everything to work? I want to use a number of the drupal modules so i'm confused as to which i need.

I've been trying to install civicrm but each time i try to enable the module in the admin section of my test site after configuring what i think is the right settings in the config file i just get a blank page come up which then seems to break the site as i can't get into any other pages and then have to drop my drupal database and then import it back in in phpmyadmin (hurrah for backups!)

Does anyone have any simple instructions as to how best configure the civicrm.settings.php file or can give me some tips!

- I'm using php 5 on my server and phpMyAdmin - 2.8.1 which is running MySQL - 5.0.18. I'm also using drupal 4.7
- My test site is running at http://localhost/drupal-4.7.0 and my files are stored at C:\apache2triad\htdocs\drupal-4.7.0
- I've extracted the full civicrm tar ball to C:\apache2triad\htdocs\drupal-4.7.0\modules\civicrm

Lucy

Comments

bomarmonk’s picture

One weird thing that threw me: you have to take the civirm config file and put it in drupal/sites/default directory, where your drupal settings file is located.

Maybe that helps?

stanbroughl’s picture

Many thanks for your swift reply - i'd come across a number of your posts trying to figure out the same things!

Have you got everything working? Is there any chance you could show me what you ended up putting for your config settings below - i want to make sure i'm putting them in the right place:

global $civicrm_root;
$civicrm_root = '';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '' );
define( 'CIVICRM_UPLOADDIR' , '' );
define( 'CIVICRM_IMAGE_UPLOADDIR' , '');

define( 'CIVICRM_UF_BASEURL' , '' );
define( 'CIVICRM_UF_RESOURCEURL' , '' );
define( 'CIVICRM_RESOURCEBASE' , '' );
define( 'CIVICRM_IMAGE_UPLOADURL' , '' );

define( 'CIVICRM_MYSQL_VERSION', 4.0 );
define( 'CIVICRM_DSN' , 'mysql://DBUSER:PASSWORD@HOSTNAME/DATABASE?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', '/usr/bin/' );

Cheers

Lucy

trailerparkopera’s picture

It sounds like you've got the civicrm module in the right place, and it sounds like you have the config file in the right place too.

The blank screen you are getting may have to do with a php memory size limit. I had to increase the amount of memory PHP could consume (set mine at 64MB) and then I got over the blank screen issue (which I encountered a couple times during my install). You do this by modifying your php.ini file (in mine, it was on line 300:

memory_limit = 64M

This may do the trick for you. I had the hardest time understanding where to put the civicrm software and getting the file paths correct. Had to read the installation instructions to figure it out ;-)

stanbroughl’s picture

Thanks for your quick reply - i got no responses last time i posted so this so you've been a great help!!!

I'll try modifying the memory limit and see what happens - i'll update on success or crushing failure later lol!

Surely there have to be some better instructions out there somewhere on how to install it and what is definatively required/not required in order to make everything work! As soon as i get it working i'm going to put some together and post them up here somewhere.

Is there any chance you could show me what you ended up putting for your config settings below - i want to make sure i'm putting them in the right place:

global $civicrm_root;
$civicrm_root = '';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '' );
define( 'CIVICRM_UPLOADDIR' , '' );
define( 'CIVICRM_IMAGE_UPLOADDIR' , '');

define( 'CIVICRM_UF_BASEURL' , '' );
define( 'CIVICRM_UF_RESOURCEURL' , '' );
define( 'CIVICRM_RESOURCEBASE' , '' );
define( 'CIVICRM_IMAGE_UPLOADURL' , '' );

define( 'CIVICRM_MYSQL_VERSION', 4.0 );
define( 'CIVICRM_DSN' , 'mysql://DBUSER:PASSWORD@HOSTNAME/DATABASE?new_link=true' );
define( 'CIVICRM_MYSQL_PATH', '/usr/bin/' );

Cheers

Lucy

stanbroughl’s picture

The problem was with this error, which a number of people have had i've noticed:

civicrm_menu(CRM/Utils/Menu.php): failed to open stream: No such file or directory in C:\apache2triad\htdocs\modules\civicrm\modules\civicrm.module on line 189.

I managed to get hold of donald lobo who scripted the module through the civicrm mailing list (crm-dev-bounces@lists.objectledge.net - you must subscribe to this to use it) and the problem was with the civicrm_root, which causes it not to find the menu and subsequently buggers your site! Also, errors will appear after the installation until you populate the civicrm tables with some of the sample data - after that you're laughing!

Lucy


-----Original Message-----
From: Donald A. Lobo [mailto:lobo@yahoo.com]
Sent: 01 June 2006 17:28
To: l.stanbrough@ucl.ac.uk; CiviCRM: General discussion around development
Subject: Re: [Crm-dev] Civicrm and Drupal 4.7 installation problems

lucy:

your civicrm_root should be:

$civicrm_root =
'C:\apache2triad\htdocs\modules\civicrm'

define( 'CIVICRM_TEMPLATE_COMPILEDIR',
'C:\apache2triad\htdocs\files\civicrm\templates_c\' );

you might want to fix the other directories also

lobo

These were my settings before so you can work out what changes had to be made to the file - make sure you download the correct source file for your php and mysql versions and only from the http://downloads.openngo.org/civicrm/ official download site:

define( 'CIVICRM_UF' , 'Drupal' );

define( 'CIVICRM_UF_VERSION' , '4.6' );

define( 'CIVICRM_UF_URLVAR' , 'q' );

define( 'CIVICRM_UF_DSN' , 'mysql://(MYSQLUSERNAME):(MYSQLPASSWORD)@(MYSQLSERVER)/(MYSQLDATABASENAME)?new_link=true' );

define( 'CIVICRM_UF_USERSTABLENAME', 'users' );

global $civicrm_root;

$civicrm_root = 'http://localhost/';

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

define( 'CIVICRM_UPLOADDIR' , '/files/civicrm/upload/' );

define( 'CIVICRM_IMAGE_UPLOADDIR' , '/files/civicrm/persist/');

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

define( 'CIVICRM_UF_RESOURCEURL' , 'http://localhost/modules/civicrm/' );

define( 'CIVICRM_RESOURCEBASE' , '/modules/civicrm/' );

define( 'CIVICRM_IMAGE_UPLOADURL' , 'http://localhost/files/civicrm/persist/' );

define( 'CIVICRM_MYSQL_VERSION', 5.0 );

define( 'CIVICRM_DSN' , 'mysql://(MYSQLUSERNAME):(MYSQLPASSWORD)@(MYSQLSERVER)/(MYSQLDATABASENAME)?new_link=true');

define( 'CIVICRM_MYSQL_PATH', '/usr/bin/' );

monjohn’s picture

I found this on the civicrm website and the settings here worked for me.

4B. CONNECTING CIVICRM

  CiviCRM server options are specified in sites/default/civicrm.php
  
  Before you can run CiviCRM (or CivicSpace, for that matter), you will
  need to set several values in civicrm.php file.  Open the
  sites/default/civicrm.php file and
  
     (i) Edit the line that starts with "$civicrm_root = ", so that it reads
      
           $civicrm_root = './modules/civicrm';
        
    (ii) Edit the next line, the one that starts with "define('CIVICRM_TEMPLATE_COMPILEDIR'",
         so that it reads
        
           define( 'CIVICRM_TEMPLATE_COMPILEDIR', './files/civicrm/templates_c/');
        
   (iii) Edit the next line, the one that starts with "define('CIVICRM_UPLOADDIR'",
         so that it reads 
 
           define( 'CIVICRM_UPLOADDIR', './files/civicrm/upload/');

plutado’s picture

I would like to echo monjon - these settings worked for me too.