As WordPress overrides PHP's memory_limit setting, you must edit the WordPress wp-config.php file to increase your WordPress app's memory limit.

Your wp-config.php file is located in your app's public folder at apps/APPNAME/public.

Increasing the Administrative Memory

For admin pages, WordPress ignores PHP's memory limit and configures its own. To change it to something other than 256 megabytes, you must set WP_MAX_MEMORY_LIMIT in wp-config.php.

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

define('WP_MAX_MEMORY_LIMIT', '512M');

/* That's all, stop editing! Happy blogging. */

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

Increasing Public Memory

To increase 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. */:

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

/* That's all, stop editing! Happy blogging. */

The example above shows memory increased to 512MB.

Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials
Was this answer helpful? 1 Users Found This Useful (1 Votes)

Powered by WHMCompleteSolution