As WordPress does not allow PHP’s memory limit setting, you must edit the WordPress wp-config.php file to increase your WordPress app’s memory limit.

The wp-config.php file is located in your app’s public root folder at /public_html.

Increasing the Administrative Memory in WordPress

For admin pages, WordPress disregards PHP’s memory limit and configures its own. To modify it to something other than 256 megabytes, you must arrange WP_MAX_MEMORY_LIMIT in wp-config.php.

To increase the memory to the administrative side of your website, add the following line above /* That’s all, stop editing! Happy blogging. */ in your wp-config.php:

The above example shows how to increase memory to 512MB.

Increasing Public Memory for WordPress

To extend the memory limit for your public-facing pages, open your app’s wp‑config.php and add the following line above /* That’s all, stop editing! Happy blogging. */:

The above example shows memory increased to 512MB.

Leave a Reply

Your email address will not be published. Required fields are marked *


Notice: Use of undefined constant STOPSPAM_PLUGIN_VERSION - assumed 'STOPSPAM_PLUGIN_VERSION' in /home/webpilla/puneetk.com/wp-content/plugins/stop-spam/stop-spam.php on line 36

Notice: Use of undefined constant STOPSPAM_PLUGIN_VERSION - assumed 'STOPSPAM_PLUGIN_VERSION' in /home/webpilla/puneetk.com/wp-content/plugins/stop-spam/stop-spam.php on line 40