How to increase PHP memory limit?

You can increase the PHP RAM limit by using one of the methods listed below:

1. Edit your wp-config.php file like this:

define('WP_MEMORY_LIMIT', '96M');
WordPress memory can be different to the server memory – you need to set this regardless of server memory settings. Please see  this article for more info.

2. If you have access to your PHP.ini file, please change the line in PHP.ini
If your line shows 32M try 96M:

memory_limit = 96M ; Maximum amount of memory a script may consume (96MB)

3. If you don’t have access to PHP.ini try adding this to a .htaccess file:

php_value memory_limit 96M

4. If none of the above helps, please contact your hosting support with a simple request to ease PHP memory limit to at least 96MB.  It’s a common request and they should be able to do this for you in a few minutes for free.

Still need help? Contact Us Contact Us