How to Fix WordPress Memory Exhausted Error in cPanel
Posted about 8 months ago 5.2kUnderstanding Memory Exhausted Error
Message: 'Allowed memory size of X bytes exhausted'.
Increase PHP Memory Limit
cPanel → Software → MultiPHP INI Editor → Select domain → Set memory_limit to 512M or 768M.
Alternative wp-config.php Method
Add to wp-config.php
define('WP_MEMORY_LIMIT', '512M');
define('WP_MAX_MEMORY_LIMIT', '512M');
Admin Area Increase
Some themes/plugins need higher admin limit.
Solutions Priority Table
| Method | Recommended Value | When to Use |
|---|---|---|
| MultiPHP INI Editor | 512M-1024M | First choice |
| wp-config.php | 512M | If INI editor not available |
| .htaccess | php_value memory_limit 512M | Last resort |