PDA

View Full Version : Take Note: Drupal Users



casperl
05-09-2008, 08:32 AM
Running Drupal on Bluehost?

Take note of that between the 8th and 9th of May 2008, something was changed on the Bluehost setup! A number of Drupal websites would have greeted the 9th of May with a "Server Configuration Errror".

This article ( http://drupal.org/node/207036 ) from Drupal.org details three ways of increasing the PHP Memory on a Drupal site. Note that setting the following line in the .htaccess file in the root folder of a Drupal site hosted by Bluehost will reward you with a "Server Configuration Error" screen.

This method is VERBOTEN:


.htaccess
Edit the .htaccess file in the Drupal root directory. Look for the section:
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
and immediately after this add the following line:
php_value memory_limit 16M


There are still two alternate ways to increase the PHP memory limit on a Drupal based website detailed in the above link.

Let's hope this saves a lot of time and frustration for someone else!

cade
05-09-2008, 12:02 PM
As far as I was aware, php_value declarations were never valid since Bluehost runs PHP as CGI-- not as an Apache module. I have always changed memory_limit via php.ini.