How to run sites on different PHP versions in cPanel
By default all sites of the account run on one PHP version - the one selected in "Select PHP Version" (how to change it). If one site needs another version - for example, an old shop needs PHP 7.4 while the other sites run on 8.3 - set its version separately in "MultiPHP Manager".
1. Choose the version for the site
- Open "MultiPHP Manager" (group "Software").
- In "Set PHP Version per Domain", tick the site. You can tick several.
- In "PHP Version" on the right, choose a version marked
alt-php, for example "PHP 7.4 (alt-php74)". - Click "Apply".

The "PHP Version" column now shows the chosen version for the site. The other sites are marked "Inherited" - they run on the shared version from "Select PHP Version". The number next to "Inherited" is the server system version; such sites actually use the version from "Select PHP Version".

Choose alt-php versions - these are the CloudLinux builds the hosting sites run on. The change applies immediately, nothing needs restarting.
2. Check that the version changed
Create a file phpver.php in the site folder (how to create and edit a file) with one line:
<?php echo PHP_VERSION;Open https://shop.example.com/phpver.php - the page shows the version, for example 7.4.33. Delete the file afterwards.
3. PHP limits for this site
The "Options" tab of "Select PHP Version" only affects sites on the shared version. For a site with its own version, set limits in "MultiPHP INI Editor":
- Open "MultiPHP INI Editor" (group "Software"), "Basic Mode".
- Pick the site folder in the list, for example
shop.example.com. The site PHP version and its settings appear below. - Change the values you need: memory_limit, upload_max_filesize, post_max_size, max_execution_time.
- Click "Apply".

The panel writes the settings to php.ini and .user.ini in the site folder. Other sites are not affected.
PHP extensions
A site with its own version uses the standard extension set of that version: mysqli, pdo_mysql, gd, curl, mbstring, intl, zip, imagick and others CMS need. The ticks on the "Extensions" tab of "Select PHP Version" do not apply to it. If the site needs a missing extension, contact support.
How to return the site to the shared version
- In "MultiPHP Manager", tick the site.
- Choose "inherit" in "PHP Version".
- Click "Apply".
You can do the same in "Select PHP Version", "Per Domain Settings" tab: the "Use PHP Selector" button in the site row. It also shows which sites are managed by MultiPHP Manager and which by "Select PHP Version".

Cron for a site with its own version
In cron jobs, use the same PHP version as the site - otherwise the script runs on the shared version:
/opt/alt/php74/usr/bin/php /home/USERNAME/shop.example.com/cron.phpReplace php74 with the version you need: php81, php82 and so on. More about cron - cron jobs.
PHP 5.x, 7.x and 8.0 no longer get security fixes. Keep a site on an old version only temporarily, while you update the CMS and plugins.