Selecting PHP Version & Editing php.ini in cPanel
Different scripts need different PHP versions and settings — an older WordPress plugin might need PHP 7.4 while a modern Laravel app needs PHP 8.2, and you may need to raise upload limits for a media-heavy site. cPanel lets you control both per domain, without touching a server-wide config file.
Switching PHP version with MultiPHP Manager
- Log in to cPanel and open MultiPHP Manager under the Software section
- Tick the checkbox next to the domain or subdomain you want to change
- Pick the version from the PHP Version dropdown and click Apply
- The change takes effect immediately — no restart needed
Editing php.ini directives with MultiPHP INI Editor
Instead of a shared php.ini file, cPanel gives each domain its own editable PHP configuration through MultiPHP INI Editor (also under Software). Select your domain, and you'll see either a form with common settings or a raw text editor depending on the PHP handler in use.
-
upload_max_filesize— the largest file a form/upload can accept (raise this for media uploads) -
post_max_size— should always be equal to or larger than upload_max_filesize -
memory_limit— how much RAM a single PHP script can use; low values cause "allowed memory size exhausted" errors -
max_execution_time— how long a script may run before PHP kills it; raise for long-running imports
A few things to keep in mind
- Always test your site after changing the PHP version — old plugins/extensions may not support newer versions
- Shared and reseller plans have sensible maximum limits per resource tier — very large values may be capped
- On VPS/VDS plans with root access, you can also edit php.ini directly per PHP-FPM pool for full control
Site broke after a PHP version change?
Switch back to the previous version in MultiPHP Manager, or open a ticket and we'll help debug the error.
Contact Support