Understanding 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

MethodRecommended ValueWhen to Use
MultiPHP INI Editor512M-1024MFirst choice
wp-config.php512MIf INI editor not available
.htaccessphp_value memory_limit 512MLast resort