Site icon My Two Cents

How to Increase PHP Memory Limit of Your WordPress Website

WordPress.org logo

You might find your WordPress website in need of more PHP Memory limit. The most common error you’ll encounter which points to the lack of PHP Memory limit would look like this:

Fatal error: Out of memory (allocated a certain number of bytes) (tried to allocate more bytes) in /absolute/path/to/one-of-the-WordPress-files/on-your-site.php on one line

You Can Fix This!

There are a couple of things you can do in order to increase the PHP Memory limit of your site and fix this problem:

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

          memory_limit = 256M

          php_value memory_limit 256M

Hope this article will be useful  🙂

Exit mobile version