Moodle gives a white page and reports memory issues.

Set the following in your php.ini put this in the root of your Moodle installation - this is the only place you need it. You only need to put this in aphp.ini as php5 is now default on all of our servers

max_execution_time = 60 
upload_max_filesize = 12M 
post_max_size = 12M 
memory_limit = 256M 
display_errors = 0 

Next put the following in your .htaccess file in the root of your Moodle installation (create one if you don't have one already) 

php_value memory_limit 256M 
php_value realpath_cache_size = 128K 
php_value realpath_cache_ttl = 150 
RLimitMem 256000000 

The memory limit you require will vary, depending upon the size of your Moodle installation. Typically, you will not require such a large amount.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Why isn't my custom php.ini working?

There are a few common reasons why custom php.ini files won't work.   Check the file...

Why is my scheduled task (CRON job) not running?

If the scheduled task did not run check the following before contacting support. 1) The file...

'Pretty' URLs not working in Concrete5

This problem with the Concrete5 script is related to the configuration of PHP on our systems, but...

My script needs a higher memory allocation, how do I increase it?

You can create your own php.ini file inside whatever sub-directory your script is in....

How do I install Locked Area Lite?

Before you install Locked Area Lite you need to create a folder that you want to protect - this...