How to increase WordPress memory limit, the easy way

September 14, 2010 at 9:27 am

If you ever had error that reads “Allowed memory size of xxx bytes exhausted”, then you need to increase WordPress memory limit. This can be done very easily and may solve really frustrating problems.

Simply open your wp-config file, located at the root of your WordPress install, and paste the following code in it. Once saved, WordPress will be able to use as much memory as specified.

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

Thanks to Jeff Starr for the tip! By the way, did you checked out the new version of his book Digging into WordPress?

Tags: