After adding some modules I got this error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 153297 bytes) in /mounted-storage/home114c/sub005/sc66074-FPOT/www/drupal/includes/database.inc on line 224

my PHP memory_limit is 32M

Do I need 64M ? 128M ?

One more thing: how can I remove modules if I can't access to the modules page anymore ? And I don't have access to php.ini file ?

thanks

Comments

saiprasad kandavalli’s picture

Give the value of php variable in .htaccess file

aneuryzma’s picture

ok I solved changing settings.php file in drupal.

I've also tried to change .htaccess file but I didn't solve it... maybe apache needs to restart after changing .htacess files ?

anyway, it is explained everything here:

http://drupal.org/node/207036

thanks

jahmes8’s picture

Try using the file name php5.ini instead.

I found this to work on some hosting providers (GoDaddy, BlueHost among my managed sites). Just putting php.ini in the root didn't change the limit in the Status Report. I renamed it to php5.ini and then it registered.

Christopher James Francis Rodgers’s picture

For a detailed step-by-step solution to this memory error problem
for both Drupal 6 and Drupal 7 to easily increase the memory allocation to 128M, see...
http://drupal.org/node/76156#comment-4582924

..or..

Drupal 7 memory increase to more than 128M,
that may or may not work for Drupal 6, see...
http://drupal.org/node/76156#comment-4583384


All the best; intended.
-Chris (great-grandpa.com)
___
"The number one stated objective for Drupal is improving usability." ~Dries Buytaert *

ntrepid8’s picture

Some shared hosting providers limit your php memory limit to 64mb. No matter what you specify, if the hosting environment does not allow more, you will still run out.