Simple installation of CiviCRM, without CivicSpace?
DeVill - April 18, 2006 - 01:19
Does anybody have a clear, simple set of directions for installing CiviCRM onto a Drupal site, preferably 4.6, WITHOUT installing CivicSpace?
I'm using cPanel, but can't figure out where to put each set of files.
I tried Googling it, but couldn't find an answer.

http://wiki.civicrm.org/confl
http://wiki.civicrm.org/confluence/display/CRM/CivicSpace+and+Drupal+-+M...
Yeah. That's what I was
Yeah. That's what I was using, and I could understand most of it, but when it came to configuring the civicrm.settings.php file, it got confusing.
I need to know where to put the different sets of files in my cPanel heirarchy.
The part I don't get is where it says:
/**
* Site URLs:
*
* This section defines absolute and relative URLs to access the host CMS (Drupal or Joomla)
* and CiviCRM resources.
*
* IMPORTANT: Trailing slashes should be used on all URL settings.
*
* EXAMPLES - Drupal/CivicSpace Installations:
* If your site's home url is http://www.example.com/civicspace/
* 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/civicspace/' );
*
* CIVICRM_UF_RESOURCEURL - Absolute URL to directory where civicrm.module is located:
* define( 'CIVICRM_UF_RESOURCEURL', 'http://www.example.com/civicspace/modules/civicrm/' );
*
* CIVICRM_RESOURCEBASE - Relative URL to directory where civicrm.module is located:
* define( 'CIVICRM_RESOURCEBASE' , '/civicspace/modules/civicrm/' );
*
* CIVICRM_IMAGE_UPLOADURL - Absolute URL to directory where uploaded image files are located:
* define( 'CIVICRM_IMAGE_UPLOADURL' , 'http://www.example.com/civicspace/files/civicrm/persist/' );
*
My site doesn't have a /civicspace or a /drupal.
If I enter my site name followed by a /civicspace, it goes to my live site and says page not found.
If I enter it followed by /drupal, it goes to my page that describes what Drupal is.
If, for example, I want to the path to my 'CIVICRM_UF_RESOURCEURL' in my cPanel, it goes 'http://www.urbanislandextreme.com:2082/frontend/x/files/list.html?dir=/public_html/modules/civicrm/'
instead of like how the example in the file above simply says:
'http://www.example.com/civicspace/modules/civicrm/'
Anybody want to help me understand how to finish configuring this file?
~Total newbie giving myself a crash course in webmastering as of March 2006.~
Try this
If you've installed Drupal in the root of your site, your CIVICRM settings should look like:
define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/' );define( 'CIVICRM_UF_RESOURCEURL', 'http://www.example.com/modules/civicrm/' );
define( 'CIVICRM_RESOURCEBASE' , '/modules/civicrm/' );
define( 'CIVICRM_IMAGE_UPLOADURL' , 'http://www.example.com/files/civicrm/persist/' );
and so on....
Thanks for your
Thanks for your reply.
Unfortunately something went wrong with my CiviCRM which caused my whole site to break when I enabled it on my administer modules page.
I got a white screen with this message that I don't understand:
warning: civicrm_menu(CRM/Utils/Menu.php): failed to open stream: No such file or directory in /home/devill/public_html/modules/civicrm/modules/civicrm.module on line 186.
Fatal error: civicrm_menu(): Failed opening required 'CRM/Utils/Menu.php' (include_path='.:drupal/modules/civicrm/:drupal/modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in /home/devill/public_html/modules/civicrm/modules/civicrm.module on line 186
I checked the locations, and they're correct.
My lines 186 through 191 in my civicrm.module say:
if ( $may_cache ) {require_once 'CRM/Utils/Menu.php';
$items = CRM_Utils_Menu::items( );
return $items;
} else {
return array( );
I tried the configuration file with:
define( 'CIVICRM_UF_BASEURL' , 'http://www.example.com/' );define( 'CIVICRM_UF_RESOURCEURL', 'http://www.example.com/modules/civicrm/' );
define( 'CIVICRM_RESOURCEBASE' , '/modules/civicrm/' );
define( 'CIVICRM_IMAGE_UPLOADURL' , 'http://www.example.com/files/civicrm/persist/' );
like you recommended, and I also tried it with /public_html before the /modules like the path shows in my cPanel, but it doesn't fix the problem.
I've tried everything I can think of.
Any idea how to fix this?
If not, I'll have to uninstall all the CiviCRM files to get it working again because it's causing me to not be able to access ANY page of my site now.
Right now, configuration file is beyond my level of understanding.
BTW, can you tell me how to post long lines such as:
(include_path='.:drupal/modules/civicrm/:drupal/modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php')without them being cut off?
Then end of that line is supposed to say:
packages:.:/usr/lib/php:/usr/local/lib/php')Thanks for any help you or anyone else can give me.
~Total newbie giving myself a crash course in webmastering as of March 2006.~
My site has been down for a
My site has been down for a day because of problems trying to install CiviCRM.
If anyone here can help me out, I'd really appreciate it.
~Total newbie giving myself a crash course in webmastering as of March 2006.~
Where is the
Where is the CRM/Utils/Menu.php file actually located? And did you literally put www.example.com in your config file? If so, it should be changed to your domain name.
Possible config file settings
Based on the errors your getting above, and the install guide, these settings might work for you:
global $civicrm_root;
$civicrm_root = '/home/devill/public_html/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/devill/public_html/files/civicrm/templates_c/' );
define( 'CIVICRM_UPLOADDIR' , '/home/devill/public_html/files/civicrm/upload/' );
define( 'CIVICRM_IMAGE_UPLOADDIR' , '/home/devill/public_html/files/civicrm/persist/');
define( 'CIVICRM_UF_BASEURL' , 'http://www.urbanislandextreme.com' );
define( 'CIVICRM_UF_RESOURCEURL' , 'http://www.urbanislandextreme.com/modules/civicrm/' );
define( 'CIVICRM_RESOURCEBASE' , '/modules/civicrm/' );
define( 'CIVICRM_IMAGE_UPLOADURL' , 'http://www.urbanislandextreme.com/files/civicrm/persist/' );
niosop, Thanks for your
niosop,
Thanks for your reply.
My Menu.php is located at:
/home/devill/public_html/modules/civicrm/CRM/Utils/Menu.phpand I used my site's name instead of example.com
I tried the settings you posted, but they don't work.
~Total newbie giving myself a crash course in webmastering as of March 2006.~
$civicrm_root = './modules/civicrm';
I had the same trouble, after having successfully upgrade on a test site.
Eventually I compate the tow civicrm.settings.php files from this misbehaving one, to the one that was successful and I dicovered I hadn' t supplied the value for
$civicrm_root =
which in my case is
$civicrm_root = './modules/civicrm';
Some ideas and answers: You
Some ideas and answers:
All this said, I still haven't got around to actually installing it on my drupal 4.6 site. I have a strong feeling your problem has to do with the php version. You may be using the PHP5.0 version of CiviCRM module. Your site's PHP and MySQL versions are displayed in most themes when you log in to your cpanel.
I just now checked it again,
I just now checked it again, and it's the right file. The Drupal version for my PHP4.
As for:
3) You need to create a separate database for CiviCRM through cPanel. Be sure to give the database user all permissions on this database. If you install Civicspace, it automatically uses table prefixes to use the same database for CiviCRM that is used for the CivicSpace site. You can also do this manually with drupal, but it is not recommended at this stage for people like you and me (newbies, that is;-))I didn't do that.
I installed the CiviCRM tables into my Drupal database.
I don't know if that's okay or not, but I'll try making a new database, though I'm not really sure how to do that since my other databases were automatically created through Fantastico.
I'll give it a try.
Thanks.
~Total newbie giving myself a crash course in webmastering as of March 2006.~
Okay, I made the database
Okay, I made the database and changed the civicrm.settings.php file to match it,
but I'm, still getting the error message on a blank white screen.
warning: civicrm_menu(CRM/Utils/Menu.php): failed to open stream: No such file or directory in /home/devill/public_html/modules/civicrm/modules/civicrm.module on line 186.
Fatal error: civicrm_menu(): Failed opening required 'CRM/Utils/Menu.php' (include_path='.:drupal/modules/civicrm/:drupal/modules/civicrm//packages:.:/usr/lib/php:/usr/local/lib/php') in /home/devill/public_html/modules/civicrm/modules/civicrm.module on line 186
The civicrm.module and Menu.php are in the right places, and their permissions are set at 644. Should I change the permissions?
If yes, to what numbers?
Do I need to change anything on my civicrm.module line 186?
I also noticed I have 2 civicrm.modules.
1 in /home/devill/public_html/modules/civicrm/civicrm.module which is 404 lines long, and the other in /home/devill/public_html/modules/civicrm/modules/civicrm.module which is 493 lines long.
Am I supposed to have 2 sets of that file?
Anything else I should try?
~Total newbie giving myself a crash course in webmastering as of March 2006.~
no drupal folder
include_path='.:drupal/modules/civicrm/:drupal/modules/civicrm//packages'That seems to be a problem. It's looking for the file in drupal/modules/civicrm, but you don't have drupal installed in a drupal folder. I'm not sure where that include path is coming from, but if you find where it's defined, and remove the drupal from it, it might work.
Alternatively, you could add the correct path using:
ini_set('include_path',ini_get('include_path').':modules/civicrm/:modules/civicrm/packages');but I'm not sure where the best place to include this would be. Anyone have any suggestions? Maybe in sites/default/settings.php with the rest of the ini_set stuff.
I also noticed I have 2
Delete the second one which is 493 lines long. If you installed CiviCRM properly, you are not supposed to have that. Of course, make a backup of that folder, just in case ;-)
Try after deleting and after adjusting the path as per niosop's suggestions. Hopefully, it will work.
I included the correct path
I included the correct path in sites/default/settings.php, but I didn't know where to put it, so I put it at the bottom a space above the ?> like:
ini_set('include_path',ini_get('include_path').':modules/civicrm/:modules/civicrm/packages');
?>
I also deleted the extra civicrm.module that was 493 lines long.
But now I get this message on a blank white screen:
Parse error: syntax error, unexpected '.', expecting '(' in /home/devill/public_html/modules/civicrm/civicrm.module on line 134My lines 133 through 137 in my civicrm.module say:
$groups =& CRM_Core_PseudoConstant::allGroup();foreach ( $groups as $title ) {
$cPerm[] = t( CRM_Core_Permission::VIEW_GROUPS . '%1', array('%1' => $title));
$cPerm[] = t( CRM_Core_Permission::EDIT_GROUPS . '%1', array('%1' => $title));
}
I'm still confused.
Thanks for the help though.
~Total newbie giving myself a crash course in webmastering as of March 2006.~
Anyone have anymore
Anyone have anymore ideas?
~Total newbie giving myself a crash course in webmastering as of March 2006.~
CRM-dev?
Might be easier to get support on the CRM-dev email list.
http://www.openngo.org/mailinglists.html
(0) The CivicSpace installer takes care of all this configuration for you. You might want to consider that.
(1) It is usually easier to give CiviCRM a seperate database, but not required.
(2) Don't keep multiple copies of the civicrm.module file around under the drupal tree-- civiCRM doesn't like this.
(3) Settings. niosop's suggestions look right, but you will have to verify them for your system.
(4) I would delete all the civicrm related files and databases and start from the beginning. Sometimes a little mistake 1/2 way through can mess everything up.
David Geilhufe
Social Source Foundation
Try CiviCRM http://www.civicrm.org/
Thanks for the reply. I
Thanks for the reply.
I tried everything you and everyone else suggested (except the CivicSpace installer because I don't have enough time to build my site from the beginning again), but it still won't work.
I'll try the mailing list.
~Total newbie giving myself a crash course in webmastering as of March 2006.~
Did you ever correct the problem? I have the same one.
Hey DeVill
I have the exact same problem. Did you ever get any help? What did you do to fix the problem?
ditto.... same problem!
Parse error: syntax error, unexpected '.', expecting '(' in /home/.../public_html/.../modules/civicrm/modules/civicrm.module on line 131I think I've found the problem here
Hi Kevin and others....
I've experienced the same problem that all of you were experiencing ie
Parse error: syntax error, unexpected '.', expecting '(' in /home/.../public_html/.../modules/civicrm/modules/civicrm.module on line 131
I have seached everywhere. Spent hours going insane on this. But I think I found it!!
Here is the issue (well what I think it is anyway).
As mentioned above, there are 2 civicrm.module files. One in the modules/civicrm/ directory and the other in the modules/civicrm/modules/
As we all know there should not be 2 modules of the same name.
Ramdak mentioned that you should delete the one in the modules/civicrm/modules/ directory but I believe this is incorrect. I think you should replace the modules/civicrm/civicrm.module with modules/civicrm/civicrm.module. ie the one from openngo.org is the correct one to use. DONT USE THE ONE ON DRUPAL.ORG
There are a number of differences between these files.
The install instructions on drupal.org for installing the civicrm module suggests placing that module into the directory as well as the files from openngo.org. I think this may be a little misleading as the civicrm.module maybe dependant on your server environment.
I hope I didn't go into too much detail here but I didn't want other to fall into the same trap as I did and spend hours trying to find out why.
confusing
i get this error:
Fatal error: Class name must be a valid object or a string in /home/mayapur/public_html/modules/civicrm/packages/HTML/QuickForm/RuleRegistry.php on line 118
this is with drupal 4.7 and civicrm 1.4 after manual installation into a seperate DB from drupal.
what a confusion this module is for me thus far. TWO VERSIONS of the .module file are available and the one on DRUPAL site doesn't work? Honestly, how can we be expected to use this?
nice they they've gone to all the trouble to get an installer happening for drupal 4.7 but where is it?
i've not read any threads where my issue above is described so does anyone know a workaround?
cheers.
Some solutions
Hi eveyrone,
I'm a total newb as well, and after messing around I found this which answers the 'expecting (' problem.
As for the 'Failed opening required' problem that is a problem with the civicrm_root being set wrong in the civicrm.settings.php file. It differs from webhost to webhost, but the file-system path to your root may not be very evident. One way to find this is copy the code below and save it as say 'whereami.php'. Upload to your website and execute it. It will tell you where you are. Then use that path and make suitable modifications to reach your civicrm_root.
Eg. If you upload to your base www folder and whereami.php tells you that you are at '/usr/public_html/whereami.php' AND if you installed drupal in public_html/drupal then your civicrm should be /usr/public_html/drupal/modules/civicrm/ and so on.
<?phpprint $_SERVER['PATH_TRANSLATED'];
?>
Hope that helps
JH
Thanks for investigating
Thanks for investigating this.
So, it appears that the 'expecting' problem at least is because of non-matching versions of CiviCRM as I pointed out in #2 of http://drupal.org/node/59214#comment-113483
whereami.php comes up blank.... 1.4+4.7 on site5 anyone?
I now have the right version of CiviCRM for php 4 (thanks everyone!)
But now i'm getting the menu.php problem.
has anyone got CiviCRM 1.4 + 4.7 working together on site5 , and can help me with the correct path settings? i wonder if it has to do with the fact that i'm using a subdomain?
global $civicrm_root;$civicrm_root = '/home/mwsf/public_html/subdomain/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/username/public_html/subdomain/modules/civicrm/templates' );
define( 'CIVICRM_UPLOADDIR' , '/home/username/public_html/subdomain/modules/civicrm/upload' );
define( 'CIVICRM_IMAGE_UPLOADDIR' , '/home/mwsf/public_html/midwest/images');define( 'CIVICRM_UF_BASEURL' , 'http://subdomain.domain.com' );
define( 'CIVICRM_UF_RESOURCEURL' , 'http://subdomain.domain.com/modules/civicrm' );
define( 'CIVICRM_RESOURCEBASE' , '/modules/civicrm' );
define( 'CIVICRM_IMAGE_UPLOADURL' , 'files/civicrm/persist/' );
Thanks everyone.
-kev
What are the results of your
What are the results of your whereami.php?
whereami.php = blank page!
whereami.php = blank page!
"...unexpected T_DNUMBER"
What might this indicate?
Parse error: syntax error, unexpected T_DNUMBER in /...MYPATH.../USER/MYSITEURL/drupal/sites/default/civicrm.settings.php on line 188
In civicrm.settings.php on that line, I have identified my MySQL version variously as 5.0 and 5.018 and 5.018-standard, all to no avail. Am I missing something? Could it be my PHP version which was not explicitly said to be compatible in the CiviCRM documentation?
I posted this over on the CiviCRM site after doing searches there, and was hoping someone here might have more of a clue than I do.
Drupal 4.7.0
MySQL 5.0.18 / 5.0.1.6 client
PHP 4.4.2
CiviCRM 1.4
(Had posted another thread on this earlier in the week and got no replies there).
Similar problem with Drupal 4.7
Hi, all,
I'm encountering a similar 'sounding' problem with a Drupal 4.7 site. I've been asked to add CiviCRM to an existing Drupal 4.7 site. After thinking I'd followed the instructions to the letter, I wound up in what I call 'blank page hell.'
I've stared at my /sites/default/civicrm.settings.php until my brain hurt and experimented with a bunch of changes that should make any difference (they didn't.) I'm a little uncertain about the 'CIVICRM_MYSQL_PATH' my host uses, but I don't use the backup features. That couldn't cause blank page hell, could it? Otherwise, I assume the usual place for errors is in the File System Paths. I'll include mine here, in case anyone else can see what I'm missing:
global $civicrm_root;
$civicrm_root = '/modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/files/civicrm/templates_c/' );
define( 'CIVICRM_UPLOADDIR' , '/files/civicrm/upload/' );
define( 'CIVICRM_IMAGE_UPLOADDIR' , '/files/civicrm/persist/');
define( 'CIVICRM_CUSTOM_FILE_UPLOADDIR' , '/files/civicrm/crm_docs/' );
Many, many, TIA
missiong period?
CiviCRM is working on mine site with the below setting: (I got an extra period in front of the / --> ./files/....)
global $civicrm_root;
$civicrm_root = './modules/civicrm';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', './files/civicrm/templates_c/' );
define( 'CIVICRM_UPLOADDIR' , './files/civicrm/upload/' );
define( 'CIVICRM_IMAGE_UPLOADDIR' , './files/civicrm/persist/' );
I got good help at http://drupal.org/node/66581
Many thanks! The missing period was, more or less, it for me. I thought I'd tried that (in the cateogory of "shouldn't matter." Apparently, I wasn't thorough enough.
FWIW, the node above has a more complete explanation.
Thanks, again.
You need full paths,
You need full paths, i.e.
global $civicrm_root;
$civicrm_root = '/var/www/html/drupal/modules/civicrm/';