How do I increase WordPress memory limit? Print

  • 0

Add a single line to wp-config.php to give WordPress more memory.

  1. In cPanel's File Manager, open wp-config.php in your WordPress root.
  2. Just above the line /* That's all, stop editing! */, add: define('WP_MEMORY_LIMIT', '256M');
  3. For admin-heavy tasks you can also add define('WP_MAX_MEMORY_LIMIT', '512M');
  4. Save the file and reload your site.

If the limit still doesn't change, raise PHP's memory_limit in cPanel under Select PHP Version > Options as well. A higher memory limit helps fix white-screen and 500 errors caused by heavy plugins or themes. If your plan caps memory and you need more, open a ticket.


Was this answer helpful?

« Back