Related Docs

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.

We recommend to increase the memory to at least 256 MB.

If you’re not sure what is the current memory on your website, you can find out that in the Tools > Site Health page, under the Site Info tab:

Increasing the WordPress Memory Limit

To address memory limit issues, there are two ways:

1. Increase it yourself by editing the “wp-config.php” file;
2. Contact your hosting company


1. Edit your wp-config.php file

The easiest solution to increase the WordPress memory limit is by editing the file “wp-config.php” from your WordPress directory.

Find the the line that says:

/* That’s all, stop editing! Happy publishing. */

then add this code before that line:

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

2. 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.

Last updated on December 8, 2021
Have a suggestion?
This field is for validation purposes and should be left unchanged.