Hmnnn. I'm also waiting for someone to reply to this 'coz I have a nice Drupal 5 beta installation but it seems like nobody's running CiviCRM 1.5 on Drupal 5.0 beta. Maybe they are taking seriously what the good people at CiviCRM said about v. 1.6 which should be coming out soon this month (see lobo's post on porting modules to Drupal 5.0: http://drupal.org/node/82257#comment-153919). For now, I'm happy that I have successfully installed CiviCRM 1.5 on Drupal 4.7.
Hi grace...I have managed to successfully install CiviCRM onto Drupal 4.7, but not without a lot of trial and error.
I decided to try to figure out the installation on my own instead of following those confusing instructions on the CiviCRM site. I don't use command line, so I did the install using FTP, File Manager and PHPMyAdmin.
The first thing I did was get Drupal 4.7 installed properly. Once that was done I checked and double checked my PHP and MySQL versions on my webhost and downloaded the Drupal Version of CiviCRM that matched it. From there I will list numbered steps I took to get this installed.
1. Used FTP to upload the zip/tar CiviCRM directly into the drupal/modules folder.
2. Used Control Panel to create database db_civicrm and gave full permissions to my main db user.
3. Went to File Manager and unzipped CiviCRM
4. Referred to CiviCRM instructions to find out which files I had to edit.
5. Edited the files server path using ./drupal/modules/civicrm/WHATEVERCOMESNEXT instead of trying to figure out the exact path, which was just easier and actually worked, so I went with it.
6. Edited the http:// paths where necessary
7. Added 4 folders with write permissions in the CiviCRM folder called upload, crm_docs, template_c and persist. What the CiviCRM instructions fail to tell you is that you have to MAKE those folders yourself and put them in the right place.
8. One of the files I had to edit had .sample in it. I moved that edited file into drupal/sites/default folder and changed the name so that it didn't have "sample" in it anymore. I think it was the civicrm.settings.php file if I remember correctly. I then copied that file into the civicrm folder.
9. I used FTP to download two sql files from my file directory. They were: civicrm_41 (you would use 40 or 41 depending on your version of mysql) and civicrm_generated.
10. Then I went to PHPMyAdmin and selected the civicrm database which at this point was still empty. Instead of using SQL and figuring out the direct path I chose "Import" and browsed my desktop to find the civicrm_41 sql file I had downloaded there. I didn't change ANY of the fields at all and clicked the Go/Enter button and that created all of the tables for CiviCRM for me. I did the same thing with the civicrm_generated sql file and that info was loaded as well.
11. Go to modules admin on your drupal site and enable civicrm and as long as you configured everything properly it should work for you.
I haven't tried this method with Drupal 5.0 Beta yet because I don't know if CiviCRM will work with it or not, but if you try it by setting up CiviCRM on it's OWN database if it doesn't work you can always delete all the CiviCRM files and it's database without wrecking your Drupal 5.0 Installation.
I really hope this helps you out and that it works for you. I spent 3 days trying to follow those instructions and they just didn't work for me at all. After doing all the things I have listed here I have CiviCRM working on Drupal 4.7 without any error messages...that I have seen so far, at least. Crossing my fingers, lol.
I have made a copy of the civicrm.settings.php file and highlighted everything I edited. If you have any problems with adjusting that file you can email me at ladycentaur@gmail.com and I will attach the small file to an email for you. I was going to post it here but the red text won't show up so it won't really be any different than you looking through the other examples.
NOTE: If you want to use CiviMail you will have to add it in the civicrm.settings.php file. You will see where CiviContribute and CiviMember are listed as being enabled. Just add a comma and type in CiviMail and save the file and refresh your page and CiviMail will show up in your site's CiviCRM menu.
Thanks ladycentaur for sharing the steps you followed to successfully install CiviCRM on Drupal. I was thinking for a while now to create a category of documentation for those of us who really don't use a command interface which most instructions in the handbooks and forums refer to. It would be a good project to do I think since I have observed that there are several Drupal users like me who are working mostly from the cPanel and phpMyAdmin interfaces of their web hosting accounts on shared servers. I also see it as a good research topic - the information behavior and processes of this group of users (how they somehow manage to put together complex web applications through trial and error).
It was also a challenge installing CiviCRM (1.5) on Drupal (4.7) but it is rewarding once you successfully do it. I think it's a powerful contributed module. I'm currently testing it to manage membership registrations and renewals for a non-profit professional organization. I have gone on to setting up the test PayPal configurations using an API key and other values from PayPal's developer sandbox. So, you ain't done yet configuring civicrm.settings.php!!! You should also try putting a Google Maps API key. Neat stuff.
Well, I do feel a certain sense of accomplishment in getting this freaking module working by installing it manually. Frankly, I think that's really sad because I have been installing this kind of stuff for several years and have never had such difficulties as CiviCRM has given me. If you could have been a fly on the wall with all the grumbling, swearing and downright frustration it would have scared you, lol. I let off one heck of a rant a few days ago when I couldn't find a CivicSpace download so I could use CiviCRM.
There are a lot of people who want to use Drupal and CiviCRM, etc who either don't know how to use command line or simply don't have access to it due to restrictions on their hosting service. It's incredibly frustrating to not be able to find good instructions for installing scripts using CPanel, File Manager, FTP and PHPMyAdmin.
Drupal is a great CMS, but there are a lot of other options out there that make it much easier for the average user to install. More people would use Drupal and CiviCRM if they didn't run into these horrendous installation problems. Frankly, it doesn't matter how great software is if people can't install or configure it. If the developers want to reach more people they really need to find a way to make installation and configuration instructions easier to follow and make a specific list of steps using clear and non-techie terminology as much as possible. If my plate weren't so full already I would try to help write handbooks for non-command line installations and configurations, but I just have too much going on to be able to do it. Once I get the non-profit site all set up and data entered I have to build a massive genealogy site for someone else. On top of that I'm going back to school in a couple of months, too. I'm also supposed to be testing and recreating bugs on a beta online game, which I haven't been able to do at all for about 3 weeks now, lol. Too much to do and not enough time. :)
Okay, I just installed CiviCRM 1.5 into my test Drupal 5.0 site and following the same steps I did with the other successful installation did not result in any errors but Drupal 5.0 does NOT even recognize CiviCRM 1.5 at all.
I used a separate database to try it out without breaking anything and it simply doesn't work at all.
I would suggest that you try a test install of the Drupal 4.7 with the CiviCRM 1.5 using the methods I listed to get a feel for installing that way and toy around with that some until CiviCRM 1.6 is available to download.
You have to move the civicrm.css file and the civicrm.module files into the civicrm folder so that their path is /drupal/modules/civicrm/civicrm.css
You also have to create a new file called civicrm.info to put in the same place.
I opened and copied the forum.info file in the forum folder and changed the info to name civicrm instead of forum. You could probably just write civicrm 1.5 in the file and get away with it, though.
I did everything else the same way as I described above.
It works fine so far, but the layout is a bit funky looking on some pages. You can check it out here where I am playing around with the Drupal 5.0 Beta.
Thanks for the tips here, lady centaur--I have it working on our test site now. Have you (or anyone else) found any fixes for the "funky" factor? Specifically, how the bullets seem to double up in lists in the garland/minnelli themes? The civicrm.css makes mention of how drupal will do this, but I'm not quite sure what has changed to break their 'fix' for it. Pretty minor flaw for a beta product, but I'm curious.
i just installed civicrm 1.6 on a brand new install of drupal 5.0rc1. it seems to work, but i had trouble with the permissions. i was getting a permission denied error for /modules/civicrm/CRM/Utils/File.php on line 114. lines 113 and 114 of this file say the following:
but not being well versed in php i couldnt tell which directories it was trying to create. i tried changing ownership of the entire modules/civicrm directory and its subdirectories to the www-data user (aka the http user on some distros), which still gave me the same error. since i couldnt figure out what directories it was trying to create or where, i figured it might be somewhere outside the modules directory, and i gave ownership to the www-data user for ALL of the drupal install. it seems to work now (i havent tested it thoroughly), but it's a little annoying to have it set up that way. if anyone has a better solution, please either email me directly or post it here. thanks!
Hi,
i've the same problem.
but i have set chmod 777 on ALL drupal installation (and civicrm directory of course) whitout effects.
the civicrm directory (and all the files in it) is owned by nobody.wheel, is correct?
the htdocs/drupal/files (and all the files in it) is owned by apache,apache is correct?
the other site directory are owned by root
i've always the same error: warning: mkdir() [function.mkdir]: Permission denied in /var/www/mysite/htdocs/drupal/modules/civicrm/CRM/Utils/File.php on line 114.
Maybe we should wait a little longer.
Hmnnn. I'm also waiting for someone to reply to this 'coz I have a nice Drupal 5 beta installation but it seems like nobody's running CiviCRM 1.5 on Drupal 5.0 beta. Maybe they are taking seriously what the good people at CiviCRM said about v. 1.6 which should be coming out soon this month (see lobo's post on porting modules to Drupal 5.0: http://drupal.org/node/82257#comment-153919). For now, I'm happy that I have successfully installed CiviCRM 1.5 on Drupal 4.7.
Hi grace...I have managed to
Hi grace...I have managed to successfully install CiviCRM onto Drupal 4.7, but not without a lot of trial and error.
I decided to try to figure out the installation on my own instead of following those confusing instructions on the CiviCRM site. I don't use command line, so I did the install using FTP, File Manager and PHPMyAdmin.
The first thing I did was get Drupal 4.7 installed properly. Once that was done I checked and double checked my PHP and MySQL versions on my webhost and downloaded the Drupal Version of CiviCRM that matched it. From there I will list numbered steps I took to get this installed.
1. Used FTP to upload the zip/tar CiviCRM directly into the drupal/modules folder.
2. Used Control Panel to create database db_civicrm and gave full permissions to my main db user.
3. Went to File Manager and unzipped CiviCRM
4. Referred to CiviCRM instructions to find out which files I had to edit.
5. Edited the files server path using ./drupal/modules/civicrm/WHATEVERCOMESNEXT instead of trying to figure out the exact path, which was just easier and actually worked, so I went with it.
6. Edited the http:// paths where necessary
7. Added 4 folders with write permissions in the CiviCRM folder called upload, crm_docs, template_c and persist. What the CiviCRM instructions fail to tell you is that you have to MAKE those folders yourself and put them in the right place.
8. One of the files I had to edit had .sample in it. I moved that edited file into drupal/sites/default folder and changed the name so that it didn't have "sample" in it anymore. I think it was the civicrm.settings.php file if I remember correctly. I then copied that file into the civicrm folder.
9. I used FTP to download two sql files from my file directory. They were: civicrm_41 (you would use 40 or 41 depending on your version of mysql) and civicrm_generated.
10. Then I went to PHPMyAdmin and selected the civicrm database which at this point was still empty. Instead of using SQL and figuring out the direct path I chose "Import" and browsed my desktop to find the civicrm_41 sql file I had downloaded there. I didn't change ANY of the fields at all and clicked the Go/Enter button and that created all of the tables for CiviCRM for me. I did the same thing with the civicrm_generated sql file and that info was loaded as well.
11. Go to modules admin on your drupal site and enable civicrm and as long as you configured everything properly it should work for you.
I haven't tried this method with Drupal 5.0 Beta yet because I don't know if CiviCRM will work with it or not, but if you try it by setting up CiviCRM on it's OWN database if it doesn't work you can always delete all the CiviCRM files and it's database without wrecking your Drupal 5.0 Installation.
I really hope this helps you out and that it works for you. I spent 3 days trying to follow those instructions and they just didn't work for me at all. After doing all the things I have listed here I have CiviCRM working on Drupal 4.7 without any error messages...that I have seen so far, at least. Crossing my fingers, lol.
I have made a copy of the civicrm.settings.php file and highlighted everything I edited. If you have any problems with adjusting that file you can email me at ladycentaur@gmail.com and I will attach the small file to an email for you. I was going to post it here but the red text won't show up so it won't really be any different than you looking through the other examples.
NOTE: If you want to use CiviMail you will have to add it in the civicrm.settings.php file. You will see where CiviContribute and CiviMember are listed as being enabled. Just add a comma and type in CiviMail and save the file and refresh your page and CiviMail will show up in your site's CiviCRM menu.
Yes, for the cPanelists and phpMyAdmin crowd!
Thanks ladycentaur for sharing the steps you followed to successfully install CiviCRM on Drupal. I was thinking for a while now to create a category of documentation for those of us who really don't use a command interface which most instructions in the handbooks and forums refer to. It would be a good project to do I think since I have observed that there are several Drupal users like me who are working mostly from the cPanel and phpMyAdmin interfaces of their web hosting accounts on shared servers. I also see it as a good research topic - the information behavior and processes of this group of users (how they somehow manage to put together complex web applications through trial and error).
It was also a challenge installing CiviCRM (1.5) on Drupal (4.7) but it is rewarding once you successfully do it. I think it's a powerful contributed module. I'm currently testing it to manage membership registrations and renewals for a non-profit professional organization. I have gone on to setting up the test PayPal configurations using an API key and other values from PayPal's developer sandbox. So, you ain't done yet configuring civicrm.settings.php!!! You should also try putting a Google Maps API key. Neat stuff.
Well, I do feel a certain
Well, I do feel a certain sense of accomplishment in getting this freaking module working by installing it manually. Frankly, I think that's really sad because I have been installing this kind of stuff for several years and have never had such difficulties as CiviCRM has given me. If you could have been a fly on the wall with all the grumbling, swearing and downright frustration it would have scared you, lol. I let off one heck of a rant a few days ago when I couldn't find a CivicSpace download so I could use CiviCRM.
There are a lot of people who want to use Drupal and CiviCRM, etc who either don't know how to use command line or simply don't have access to it due to restrictions on their hosting service. It's incredibly frustrating to not be able to find good instructions for installing scripts using CPanel, File Manager, FTP and PHPMyAdmin.
Drupal is a great CMS, but there are a lot of other options out there that make it much easier for the average user to install. More people would use Drupal and CiviCRM if they didn't run into these horrendous installation problems. Frankly, it doesn't matter how great software is if people can't install or configure it. If the developers want to reach more people they really need to find a way to make installation and configuration instructions easier to follow and make a specific list of steps using clear and non-techie terminology as much as possible. If my plate weren't so full already I would try to help write handbooks for non-command line installations and configurations, but I just have too much going on to be able to do it. Once I get the non-profit site all set up and data entered I have to build a massive genealogy site for someone else. On top of that I'm going back to school in a couple of months, too. I'm also supposed to be testing and recreating bugs on a beta online game, which I haven't been able to do at all for about 3 weeks now, lol. Too much to do and not enough time. :)
Okay, I just installed
Okay, I just installed CiviCRM 1.5 into my test Drupal 5.0 site and following the same steps I did with the other successful installation did not result in any errors but Drupal 5.0 does NOT even recognize CiviCRM 1.5 at all.
I used a separate database to try it out without breaking anything and it simply doesn't work at all.
I would suggest that you try a test install of the Drupal 4.7 with the CiviCRM 1.5 using the methods I listed to get a feel for installing that way and toy around with that some until CiviCRM 1.6 is available to download.
I found a way to make CiviCRM 1.5 work with Drupal 5.0
You have to move the civicrm.css file and the civicrm.module files into the civicrm folder so that their path is /drupal/modules/civicrm/civicrm.css
You also have to create a new file called civicrm.info to put in the same place.
I opened and copied the forum.info file in the forum folder and changed the info to name civicrm instead of forum. You could probably just write civicrm 1.5 in the file and get away with it, though.
I did everything else the same way as I described above.
It works fine so far, but the layout is a bit funky looking on some pages. You can check it out here where I am playing around with the Drupal 5.0 Beta.
http://ofeliascommunity.org/test/
Thanks for the tips here,
Thanks for the tips here, lady centaur--I have it working on our test site now. Have you (or anyone else) found any fixes for the "funky" factor? Specifically, how the bullets seem to double up in lists in the garland/minnelli themes? The civicrm.css makes mention of how drupal will do this, but I'm not quite sure what has changed to break their 'fix' for it. Pretty minor flaw for a beta product, but I'm curious.
civicrm 1.6 and drupal 5.0 rc1
hi all,
i just installed civicrm 1.6 on a brand new install of drupal 5.0rc1. it seems to work, but i had trouble with the permissions. i was getting a permission denied error for /modules/civicrm/CRM/Utils/File.php on line 114. lines 113 and 114 of this file say the following:
CRM_Utils_File::createDir( dirname( $path ) );mkdir( $path, 0777 );
but not being well versed in php i couldnt tell which directories it was trying to create. i tried changing ownership of the entire modules/civicrm directory and its subdirectories to the www-data user (aka the http user on some distros), which still gave me the same error. since i couldnt figure out what directories it was trying to create or where, i figured it might be somewhere outside the modules directory, and i gave ownership to the www-data user for ALL of the drupal install. it seems to work now (i havent tested it thoroughly), but it's a little annoying to have it set up that way. if anyone has a better solution, please either email me directly or post it here. thanks!
jessy
civicrm 1.6 and drupal 5.0 rc1 (same problem)
Hi,
i've the same problem.
but i have set chmod 777 on ALL drupal installation (and civicrm directory of course) whitout effects.
the civicrm directory (and all the files in it) is owned by nobody.wheel, is correct?
the htdocs/drupal/files (and all the files in it) is owned by apache,apache is correct?
the other site directory are owned by root
i've always the same error: warning: mkdir() [function.mkdir]: Permission denied in /var/www/mysite/htdocs/drupal/modules/civicrm/CRM/Utils/File.php on line 114.
what is my fault? i'm breaking my head....
thanx!!
RESOLVED: civicrm 1.6 and drupal 5.0 rc1 (same problem)
the problem was the link to the civicrm upload directories under http://yoursite/?q=civicrm/admin/setting/path?reset=1
i've insert the absolute path and now it work!
bye
-vinx