PHP Memory Limit

PHP Memory Limit

by James Harrison -
Number of replies: 1
How large must the PHP memory be to satisfy running Moodle on a server. I get alloction error during installation  and a caution indicating my server has a low PHP memory limit.
Average of ratings: -
In reply to James Harrison

Re: PHP Memory Limit

by Herbert Keijers -
Hi James,
Moodle should set the memory_limit local to 64M during install. I'm talking about a Moodle 1.4.4 install but suppose dev 1.5 has the same strategy.
This way you overule the standard memory_limit of 8M, which most providers maintain.
You can adapt the memory_limit in php.ini
It is my experience that 64M is necessary on my server for running Moodle. (RH 7.2 ; 1000Mhz ; 1G ram).
You can check your configuration with phpinfo on the admin page of your Moodle.
I give you a snapshot of mine. Second colomn is the local value, third is the master value.


Attachment memory_limit.png