How to Increase the WordPress PHP Memory Limit

On many hosting providers the default PHP Memory is usually 32 or 64 MB, however for WordPress that may not be enough sometimes, especially if you have a lot of plugins installed on your website.

I recommend to increase the memory to 256 MB or more.

How to change the WordPress Memory

The most common solution to this problem is to edit the file “wp-config.php” from your WordPress directory and to add the following line somewhere at the end:

define( 'WP_MEMORY_LIMIT', '256M' );

However, there is an easier method, by using the plugin WP Config File Editor.

Just install the plugin, activate it, and then go to the WPCF Editor page and simply change the value for Max Memory limit to 256M:

That’s all!

Note: If this solution does not work for you, then this means your web hosting service provider does not allow WordPress to increase PHP memory limit. You will need to ask your web hosting provider to increase your PHP memory limit manually.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.