Skip to content
Hosting2 min read

What is MultiPHP?

Short answer

MultiPHP is a cPanel system that installs several PHP versions on the same server and lets you choose a different one for each domain. For example, an older store can stay on PHP 8.1 while a new Laravel app on the same account runs PHP 8.3.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. How it works
  2. Practical example: before you switch
  3. Common confusions
  4. On ArabyHost

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_limit and upload_max_filesize per 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

  1. Check the app’s requirements, such as "php": "^8.2" in composer.json, or the theme and plugin requirements.
  2. Take a backup.
  3. Switch the version, then open the key pages and check the error log.
  4. 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 -v over 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.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.