Community & Support

.htaccess causing 500 Internal Server Error

I have my own server, and I have total control of it. It is Fedora Core 4, Apache 2.0.54 and PHP 5.0.5. I am using the ISPConfig control panel (http://www.ispconfig.org) to create users and web sites.

I currently have two sites running on the server. One is a Drupal 4.6 site, the other is a test site (a copy of the first site, upgraded to 4.7). Both of these seem to be working fine.

I started creating a new web site with Drupal 4.7.3, and immediately started getting 500 Internal Server Error. I've looked through several threads that implicate the .htaccess file, so I commented out the whole file, then uncommented each section one by one. Everything seems to work OK if I leave the following lines commented:

# Set some options.
##Options -Indexes
##Options +FollowSymLinks

# Set the default handler.
##DirectoryIndex index.php

# PHP 5, Apache 1 and 2
##<IfModule mod_php5.c>
##  php_value magic_quotes_gpc                0
##  php_value register_globals                0
##  php_value session.auto_start              0
##</IfModule>

# Reduce the time dynamically generated pages are cache-able.
##<IfModule mod_expires.c>
##  ExpiresByType text/html A1
##</IfModule>

The maddening thing is that the other two sites work fine, even though I have not had to comment out anything in their .htaccess files.

The only errors I'm seeing in the httpd error log is "an unknown filter was not added: PHP"

Anyone have a suggestion where I should look to find the problem?

Thanks,
-Mark

Comments

Does this thread

Kind of, but not really

Thank you.

I think the logged error has something to do with the ISPConfig control panel. There doesn't seem to be any connection to the 500 error.

Just installed ispconfig for test

Hello,

I've just installed ispconfig for test purposes and had some issues:
- the default apache2.conf (/etc/apache2/apache2.conf) had some rules at the end;
AllowOverride None (change it to all), look also at the files dinied (^ht) stuff.
PHP safe mode must be turned off (http://www.howtoforge.com/drupal_ispconfig)
maybe that site can help you with your issues.

HTH,
Fossie

Look if

Look if

session.save_handler is set to "files"

If yes then this is the problem. Drupal wants this to be set to "user". Many other applications like phpMyAdmin want this to be set to "files". So, I have set it to "users" and change it to "files" inside the .htaccess by putting this line.

php_value session.save_handler "files"

For this to work in apache config file and in directive (the one which defines which directory will be served by apache) you should set

AllowOverride ALL

so that .htaccess files work.

Also check the rewrite rules.

nobody click here