Increasing the WordPress Memory Limit

To address memory limit issues, there are two options:

  • Adjust it yourself
  • Contact your hosting company

Do it Yourself

To adjust on your own, here are some methods to try. Be aware that this section requires advanced knowledge; it is not basic.

Note: this setting may not work if your host does not allow for increasing the PHP memory limit–in that event, contact your host to increase the PHP memory limit.

Edit your config.php file

Add this to the very bottom, right before the line that says, “Happy Blogging”:

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

Edit your PHP.ini file

If you have access to your PHP.ini file, change the line in PHP.ini

memory_limit = 2560M ;

Edit your .htaccess file

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

php_value memory_limit 2560M

Contact your Host

Should you not feel comfortable in trying the above methods, or the above did not work for you, you need to talk to your hosting about having them increase your memory limit.