Hi all, I've recently run into a problem where all i get is a blank white screen with no errors on screen - turns out it was an out of memory problem. PHP memory_limit was 8MB. my hosting company has now upped this to 16MB. However i have another hosting company where the default PHP memory_limit is 80MB. I have no idea on the scale of these numbers and was wondering what a decent memory_limit was. I guess that could be compared to 'how long is a piece of string' as in it depends on the site. But I just want a ballpark figure for your average site with upto 20-30 pages, possibly a gallery with 10-30 images, a few 'about' sections, 'faq' etc - i.e. NOT a community based site where content grows and grows.
Also if the site hosts multiple drupal installations (in different folders) is this memory_limit apply to ALL installations combined?
Comments
good memory_limit is 32mb
Hi
The php_memory_limit i use is 32mb
You change the php memory limit in a file called php.ini
If you have shell access you would do the following
1 - switch to root
sudo su
password : enter your password
2 - find the php.ini file - then open it with nano
nano /path_to_php_install/php.ini
3 - find the php_memory_limit and change it to 32mb
use control v to move down one screen at a time
4 - you may also want to change these settings as well so you can upload files larger than 2mb
post max size
max file upload
5 - when you have changed the memory limit press control o then press return to save the file
Then press control x to exit nano and return to the shell prompt
6 - restart the webserver
usually something like - apache2 restart
7 - type exit to switch from root back to normal user
The memory_limit doesnt apply to ALL installations combined, it give each site a php memory limit of 32mb
Hope that helps
24M works fine for me. But
24M works fine for me. But 8M and 12M was somewhat not enough if using views module.
Drupal Top Sites | Drupal Sites Directory
Drupal Sites Directory
Content does not create a memory limit problem
The memory limit isn't about how much content you have; that's in the database. Memory usage depends on which modules you have installed and how you're using them.
Thanks for the replies...
I'd totally forgotten I'd posted this here!
(I don't think you can get email notification of replies on this forum?)
Those numbers were very helpful thanks...
Need 256
I have to increase up to 256M in .htaccess - hiw can I find out who needs so much memory?
I also need 256 Mb to my site
I also need 256 Mb to my site would work, I have installed some modules that may need additional resources (Views, Ubercart, etc)
Manuel Guerrero