PHP’s memory_limit controls how much memory an individual script may allocate. In cPanel, you can request a higher limit for a domain where the hosting configuration permits it.

Change the domain’s setting

  1. Open Software > MultiPHP INI Editor in cPanel.
  2. In Basic Mode, select the intended domain rather than an account-wide directory unless that broader scope is required.
  3. Record the current memory_limit.
  4. Enter the required value, including the unit, such as 256M.
  5. Click Apply.
  6. Test the application and verify the effective website PHP setting.

basic mode

A PHP-FPM pool or provider-enforced setting may override the requested value. If it does not change, ask the administrator to check the active PHP configuration.

Check the effect

Increasing this per-script limit does not increase the account’s RAM allocation. Several concurrent scripts can consume more memory together, so choose a justified value and monitor the workload. Persistent memory errors may indicate an application problem rather than simply a low limit.