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) »
  • Drupal (v7) 500 internal server error after module install
Pages: [1]

Author Topic: Drupal (v7) 500 internal server error after module install  (Read 9290 times)

Criticalfactor

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.9
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Drupal (v7) 500 internal server error after module install
February 28, 2012, 07:50:20 am
Hi there,

I have Drupal 7 installed and working fine, until I enable the CiviCRM module, after which the people administration page (/?q=admin/people) is no longer accessible; a 500 internal server error page is displayed.

Could someone lend a hand please?

Many thanks!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal (v7) 500 internal server error after module install
February 28, 2012, 08:38:06 am
Did you follow the installation guide: Drupal Installation Guide for CiviCRM 4.1 - Drupal 7 ?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Criticalfactor

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.9
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 03:17:39 am
Yes.

  • Drupal is installed to /var/www
  • There are two separate SQL users, one for Drupal and another for Civi, but I've assigned full access rights to each other
  • The sites/default directory permission was set to 777 before the installation
  • default/files exists and is writeable (777)
  • I installed Civi with the given URL before enabling

Immediately following installation, the 500 internal server error appears, and does so again when accessing the Drupal "people" menu for administrating users. Disabling the CiviCRM module removes the error.

Thank you

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 03:22:15 am
Quote from: Criticalfactor on February 29, 2012, 03:17:39 am
I installed Civi with the given URL before enabling

The installer enables CiviCRM automatically for you. You are enabling it manually?

Is there any error show in the Apache logs?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Criticalfactor

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.9
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 03:44:25 am
Sorry, I was referring to the installer enabling it. When I turn it off and on, the error disappears accordingly.

I've found a few errors in the apache logs:

[Wed Feb 29 11:30:03 2012] [error] [client 192.168.100.78] PHP Parse error:  syntax error, unexpected T_VARIABLE in /var/www/sites/default/civicrm.settings.php on line 83, referer: http://192.168.100.18/

[Wed Feb 29 11:21:36 2012] [error] [client 192.168.100.78] File does not exist: /var/www/favicon.ico

[Wed Feb 29 11:06:09 2012] [error] [client 192.168.100.78] PHP Fatal error:  Class 'CRM_Core_BAO_Setting' not found in /var/www/sites/all/modules/civicrm/drupal/modules/civicrm_engage/civicrm_engage.insta$

[Tue Feb 28 15:04:38 2012] [error] [client 192.168.100.18] File does not exist: /var/www/admin


Thanks again. In the meantime I'm creating the /var/www/admin folder...
« Last Edit: February 29, 2012, 03:46:28 am by Criticalfactor »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 03:58:27 am
Can you post your var/www/sites/default/civicrm.settings.php file? Change the passwords if you like.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Criticalfactor

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.9
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 04:38:31 am
Of course. Thanks.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 04:50:46 am
Does your MySQL password on line 83:

Code: [Select]
define( 'CIVICRM_DSN'          , 'mysql://civicrm:password-was-here@localhost/civicrm?new_link=true' );
Have an apostrophe?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Criticalfactor

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.9
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 05:02:36 am
It does! Very good.

I should change this? What does it affect?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 05:07:16 am
Either change it (it only affects any connections to the DB using this user) or you could edit that line to be:

Code: [Select]
define( 'CIVICRM_DSN'          , "mysql://civicrm:password'was'ere@localhost/civicrm?new_link=true" );
I changed the first and last apostrophes to quotes and now you could use an apostrophe in the password. But this issue may return one day when you upgrade, so perhaps changing the password is best.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Criticalfactor

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.9
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 05:49:23 am
You genius! Thanks Hershel, that worked perfectly.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 05:52:40 am
Glad you got it.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Criticalfactor

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.9
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 08:02:32 am
Hi Hershel,

Sorry, it worked for a while, but after only a few menu tweaks in Drupal I'm receiving more 500 server errors (they disappear upon refresh) and the following:


In CiviCRM
Warning: require(/var/www/sites/all/modules/civicrm/CRM/Core/DAO/.listAll.php): failed to open stream: Permission denied in _civicrm_api3_get_DAO() (line 246 of /var/www/sites/all/modules/civicrm/api/v3/utils.php).

In Apache:
[Wed Feb 29 15:50:08 2012] [error] [client 192.168.100.73] PHP Fatal error:  require(): Failed opening required 'CRM/Core/DAO/.listAll.php' (include_path='/var/www/sites/all/modules/civicrm/drupal/module$


The listAll.php file doesn't exist.

I don't want to keep bothering you, so if you feel a fresh install is best, please let me know. Thank you :)

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: Drupal (v7) 500 internal server error after module install
February 29, 2012, 08:59:34 am
The listAll.php file has a "." in front of it, which means you won't see it by default in a directory listing.

I seem to recall something similar, maybe a php version or settings issue, but you could try googling it. It's just telling you that you can't access that file from php because of permissions. Maybe a selinux thingy?

In any case you'll want to clear out your templates_c directory and all your other caches to avoid those temporary 500 errors.

Criticalfactor

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.9
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Drupal (v7) 500 internal server error after module install
March 02, 2012, 10:09:16 am
Thanks adixon!

The file was there, but with locked down permissions.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Drupal (v7) 500 internal server error after module install

This forum was archived on 2017-11-26.