1+(91) 458 654 528 [email protected]

Increasing the WordPress Memory Limit

To address memory limit issues, there are two paths:

Edit your wp-config.php file

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

This code tells WordPress to increase the PHP memory limit to 256MB.

Once you are done, you need to save your changes and upload your wp-config.php file back to your server.

You can now visit your WordPress site and memory exhausted error should disappear now.


Edit your PHP.ini file

If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 64M try 256M:

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


Edit your .htaccess file

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

php_value memory_limit 256M