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) »
  • CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!
Pages: [1]

Author Topic: CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!  (Read 4075 times)

mhm

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!
September 28, 2009, 01:58:05 pm
We're running CiviCRM/Drupal on Dreamhost.  I realize from looking through the forums that Dreamhost is problematic.  I'm working with them on a resolution, but they're very slow, so I thought I'd see if I could at least try to isolate the issue with some help from here.  (Drupal 6.13 and Civicrm 2.2.7)

(And yes, I've reviewed both http://wiki.civicrm.org/confluence/display/CRMDOC/Drupal+Installation+Guide and http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location in my attempts so far.)

They moved our site to another server.  Everything is hunky dory with the Drupal part, but the CiviCRM part has died completely.  (Yesterday, I still had a link to civicrm from my navigation links, but that has since disappeared.)  (And we're using civicrm to run ticketing for 2 events at the moment. I'm panicking just a little.)

I now get this host of errors:
Code: [Select]
    * warning: mkdir() [function.mkdir]: Permission denied in /home/example/example.com/sites/all/modules/civicrm/CRM/Utils/File.php on line 114.
    * warning: include_once(CRM/Core/Config.php) [function.include-once]: failed to open stream: No such file or directory in /home/example/example.com/sites/all/modules/civicrm/drupal/civicrm.module on line 260.
    * warning: include_once() [function.include]: Failed opening 'CRM/Core/Config.php' for inclusion (include_path='.:/mnt/local/home/example/example.com/sites/all/modules/civicrm:/mnt/local/home/example/example.com/sites/all/modules/civicrm/packages:.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/example/example.com/sites/all/modules/civicrm/drupal/civicrm.module on line 260.

Oops! - The path for including CiviCRM code files is not set properly. Most likely there is an error in the civicrm_root setting in your CiviCRM settings file (sites/default/civicrm.settings.php).

» civicrm_root is currently set to: /mnt/local/home/example/example.com/sites/all/modules/civicrm.

Please review the Drupal Installation Guide and the Trouble-shooting page for assistance. If you still need help installing, you can often find solutions to your issue by searching for the error message in the installation support section of the community forum.

At first, Dreamhost said that problem was the /mnt/local/ string in the civicrm_root path, and said to take it out so paths would begin at /home. This failed miserably, and took the Drupal side of the site down with it.  I changed it back.

From some research on these forums, it appears that to have civicrm working on Dreamhost, it is necessary to do some work with the php.ini file.  I didn't see one in my files, and have no recollection of ever having done anything there.  I also checked a backup from about a month ago, and there is not a cgi-bin/php.ini as there should be if I'd done anything to the php.ini.  Just in case this was somehow still the case, I followed Dreamhost's directions on it, which promptly broke everything, so I removed the lines in the .htaccess referring to the new php.ini. 

So, I guess what I'm asking:
Is the php.ini hack necessary for running civicrm on Dreamhost?
If it is, how was it working before they moved the site?
If that's not it, where do I turn next?  (I'm thinking about trying a fresh install of civicrm 3.0.beta to see if I can just get that up and running.  Things can't get worse, right?)

Thanks in advance for any help. The sad thing is that Dreamhost really is remarkably better than our old host (PowWeb - which wasn't even capable of running civicrm).

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!
September 29, 2009, 10:03:56 am
Based on the "Permission denied" error, the problem might be insufficient permissions for web server. I would check this forum for issues / solutions regarding directory permissions.

Since you're not getting memory allocation problems (yet at least) - not sure that modifying php.ini is your issue.

If you're in a time crunch you might consider contacting someone on the Professional Services page for help:
http://civicrm.org/professional
Protect your investment in CiviCRM by  becoming a Member!

mhm

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
Re: CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!
September 29, 2009, 12:06:05 pm
Thanks Lobo, I'll follow up on that next.

Incidentally, this morning I tried deleting, and then trying a fresh install (with a new database) of 3.0 beta5.  When I run the installer, I just get a "page not found" error, within my normal Drupal template.  My PHP memory_limit is 90 MB, so it shouldn't be exceeding that, although it could be a timeout problem perhaps? 

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!
October 02, 2009, 09:43:18 am
Quote from: mhm on September 29, 2009, 12:06:05 pm
Thanks Lobo, I'll follow up on that next.

Last time I saw them Dave and Lobo were two different people. ;)

Quote
Incidentally, this morning I tried deleting, and then trying a fresh install (with a new database) of 3.0 beta5.  When I run the installer, I just get a "page not found" error, within my normal Drupal template. My PHP memory_limit is 90 MB, so it shouldn't be exceeding that, although it could be a timeout problem perhaps? 

Is this a Drupal error or a webserver error? I.e., does it look like when you go to a non-existing page on the web, or is it a Drupal-themed page that says this in the main content area?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

mhm

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
Re: CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!
October 02, 2009, 10:26:51 am
Quote from: Piotr Szotkowski on October 02, 2009, 09:43:18 am
Quote from: mhm on September 29, 2009, 12:06:05 pm
Thanks Lobo, I'll follow up on that next.

Last time I saw them Dave and Lobo were two different people. ;)

Oops!  I think I just saw the part of the "I'm (like) Lobo," and didn't pay enough attention.  Thanks Dave!

Quote
Quote
Incidentally, this morning I tried deleting, and then trying a fresh install (with a new database) of 3.0 beta5.  When I run the installer, I just get a "page not found" error, within my normal Drupal template. My PHP memory_limit is 90 MB, so it shouldn't be exceeding that, although it could be a timeout problem perhaps? 

Is this a Drupal error or a webserver error? I.e., does it look like when you go to a non-existing page on the web, or is it a Drupal-themed page that says this in the main content area?

Yes, this is a Drupal-themed page that says this in the main content area. 

Incidentally, our host has confirmed that before they moved us to a new server, we did not have a custom php.ini.


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!
October 05, 2009, 02:40:17 am
Quote from: mhm on October 02, 2009, 10:26:51 am
Quote
Quote
Incidentally, this morning I tried deleting, and then trying a fresh install (with a new database) of 3.0 beta5.  When I run the installer, I just get a "page not found" error, within my normal Drupal template. My PHP memory_limit is 90 MB, so it shouldn't be exceeding that, although it could be a timeout problem perhaps? 

Is this a Drupal error or a webserver error? I.e., does it look like when you go to a non-existing page on the web, or is it a Drupal-themed page that says this in the main content area?

Yes, this is a Drupal-themed page that says this in the main content area.

This most probably means that the URL to the installer is wrong – i.e., it does not point to the installer’s files on the server. It does seem like it passes through Drupal and then Drupal does not find the relevant CiviCRM stuff.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

sykong

  • Guest
Re: CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!
October 17, 2009, 08:18:20 am
Quote from: mhm on September 29, 2009, 12:06:05 pm
Incidentally, this morning I tried deleting, and then trying a fresh install (with a new database) of 3.0 beta5.  When I run the installer, I just get a "page not found" error, within my normal Drupal template.  My PHP memory_limit is 90 MB, so it shouldn't be exceeding that, although it could be a timeout problem perhaps? 

It is a sql problem. I'm on dreamhost too :p

Try the fix here. http://forum.civicrm.org/index.php/topic,9973.0.html

mhm

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
Re: CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!
October 20, 2009, 01:24:40 pm
Sykong, you are my favorite person ever!  It worked, at least as far as getting it installed.
I've yet to see if everything is working correctly, but I'm hopeful. (And this is wonderful news, as I do need to get this back running soon.)
Thank you, a million times thank you!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • CiviCRM on Dreamhost - they moved us to another server, CiviCRM broke!

This forum was archived on 2017-11-26.