Updated: 28 September 2026 · Applies to: cPanel & WHM 138 (Jupiter theme)

If WordPress shows "Allowed memory size exhausted" or runs out of memory in the admin area, increase both PHP's limit and WordPress's own limit.

1. Raise the PHP limit

In cPanel, Software › MultiPHP INI Editor › Basic Mode: set memory_limit to 256M for the domain (on CloudLinux: Software › Select PHP Version › Options).

2. Tell WordPress to use it

Add these lines to wp-config.php, above /* That's all, stop editing! */:

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

3. Reduce memory use

  • Use a caching plugin, and remove plugins you do not use.
  • Check Tools › Site Health for plugins or themes that cause problems.

Note: The account's total memory is still limited by your plan (up to 1 GB per account on shared hosting).

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket