PHP applications don’t support every version. An old plugin may break on PHP 8.3, while a modern framework may refuse to run on 8.1. Without multiple versions you would have to upgrade all your sites at once, or split them across servers.
How it works
MultiPHP in cPanel has two tools:
- MultiPHP Manager: pick the PHP version for each domain.
- MultiPHP INI Editor: change settings such as
memory_limitandupload_max_filesizeper domain, instead of hand-editing php.ini.
When you choose a version, cPanel writes a few lines into the site’s .htaccess file, like these:
# php -- BEGIN cPanel-generated handler, do not edit
<IfModule mime_module>
AddHandler application/x-httpd-ea-php83 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Those lines are what set the version. Delete them, or overwrite .htaccess with a file from another site, and the site can silently fall back to the server’s default PHP.
Practical example: before you switch
- Check the app’s requirements, such as
"php": "^8.2"incomposer.json, or the theme and plugin requirements. - Take a backup.
- Switch the version, then open the key pages and check the error log.
- An error like Call to undefined function usually means a PHP extension is missing in the new version or the code is outdated. Switch back while you fix it.
Common confusions
- The CLI version can differ:
php -vover SSH may show a different version from the website’s, which affects Composer and cron jobs. Call the specific PHP binary when needed. - Extensions are per version: each version has its own extensions and settings, so enabling one in 8.2 doesn’t enable it in 8.3.
On ArabyHost
Every plan offers PHP 8.1, 8.2 and 8.3, and you choose the right version for each site from the control panel. Follow the PHP version guide before switching. AI/Developer plans add SSH, Composer and Git for running apps such as Laravel.
FAQ
Can I run two PHP versions on the same account?
Yes, that's the whole point of MultiPHP: each domain or subdomain can use its own version. A single site, though, runs on one version at a time.
Which PHP version should I choose?
The newest one your application and its plugins support. Newer versions are faster and get security fixes for longer, but check compatibility first.
Will changing the PHP version delete my files?
No. It only changes which PHP runs your files. If the code isn't compatible you may see errors until you switch back to the previous version.