Less than a minute read

How to extend PHP memory limit on your WordPress?

In order to extend PHP limit in your WordPress please login to your FTP account on your hosting account and edit wp-config.php. Then add the following code at the end:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '128M' );
ini_set( 'memory_limit', '128M' );

Notes: If your hosting provider doesn’t allow for increasing the PHP memory in the way mentioned above then please contact your host. Also, note that some hosts set the PHP limit at low values, like 8MB.