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