---
title: "How to Set a Different PHP Version per Domain in cPanel"
description: "Run a different PHP version on each domain, addon domain and subdomain with cPanel MultiPHP Manager, and find out why a change sometimes seems to do nothing."
url: "https://docs.noiz.ie/cpanel/how-to-set-a-different-php-version-per-domain-in-cpanel/"
section: "cPanel"
categories:
  - "Control Panels > cPanel"
last_reviewed: "27 July 2026, against cPanel & WHM **MultiPHP Manager** in the current cPanel & WHM release, and against the PHP release schedule published by php"
---

# How to Set a Different PHP Version per Domain in cPanel

If your cPanel account hosts more than one website, you do not have to run them all on the same PHP release. cPanel lets you set a different PHP version for each domain, addon domain and subdomain in the account, so an older application that is not yet ready to move can stay where it is while everything else runs on a current release.

This guide shows you how to do that with **MultiPHP Manager** in cPanel, and covers the parts that catch people out: how addon domains and subdomains are listed, what the **inherit** setting actually does, and why a change sometimes appears to do nothing.

**Last reviewed:** 27 July 2026, against cPanel & WHM **MultiPHP Manager** in the current cPanel & WHM release, and against the PHP release schedule published by php.net. This guide is written for Noiz hosting and is kept current against cPanel. It complements, and does not replace, the official cPanel documentation linked below.

### Official Documentation Reference

- [cPanel documentation: MultiPHP Manager for cPanel](https://docs.cpanel.net/cpanel/software/multiphp-manager-for-cpanel/)
- [cPanel documentation: MultiPHP Manager for WHM (server-wide defaults)](https://docs.cpanel.net/whm/software/multiphp-manager-for-whm/)
- [cPanel documentation: MultiPHP INI Editor](https://docs.cpanel.net/cpanel/software/multiphp-ini-editor-for-cpanel/)
- [php.net: Supported PHP versions and end-of-life dates](https://www.php.net/supported-versions.php)

## Prerequisites

- Login details for your cPanel account.
- At least two domains in the account (a primary domain plus an addon domain or subdomain).
- A recent backup of the site you are about to change, in case the application does not tolerate the new PHP version.

## Choose the PHP Version First

Before you change anything, decide which release each site should run. Only PHP versions that still receive security fixes are safe to run on a public website. PHP 7.x and PHP 8.0 and 8.1 are long past end of life and receive no patches at all, so treat any site still pinned to them as work that needs doing rather than a setting you leave alone.

Check the current list on the [php.net supported versions page](https://www.php.net/supported-versions.php), then pick the newest release your application, theme and plugins actually support. The safe pattern is to move up one minor release at a time, test, and repeat, rather than jumping several releases in one go.

The examples below use PHP **8.4** on `example1.com` and PHP **8.3** on `example2.com`. Replace those with your own domains and the versions your sites need.

## Set a Different PHP Version per Domain

### 1. Log in to cPanel

Log in to your cPanel account.

### 2. Open MultiPHP Manager

In the **Software** section, click **MultiPHP Manager**.

![The MultiPHP Manager icon in the Software section of the cPanel home screen](/img/cpanel-multiphp-icon.gif)

### 3. Set the version for the first domain

Scroll down to the **Set PHP Version per Domain** table. Tick the checkbox next to the domain you want to change, choose the release you want from the **PHP Version** drop-down menu, and click **Apply**.

In this example, `example1.com` is set to PHP 8.4.

![The Set PHP Version per Domain table in MultiPHP Manager, with the first domain ticked and a PHP version chosen from the drop-down menu before clicking Apply](/img/cpanel-multiphp-select-domain-full.gif)

### 4. Set the version for the second domain

Repeat the same steps for the next domain. Tick `example2.com`, choose PHP 8.3 from the **PHP Version** drop-down menu, and click **Apply**.

![The same MultiPHP Manager table with the second domain ticked and a different PHP version selected, so the two domains run separate versions](/img/cpanel-multiphp-select-second-domain.gif)

Both domains now run different PHP versions. The table reflects the change immediately, and new requests to each site are served by the version shown against it.

The screenshots above were taken on an earlier cPanel release, so the list of available PHP versions in your account will be longer and more current than the one pictured. The layout and the steps are unchanged.

## What to Watch Out For

### Addon domains and subdomains are separate rows

Every addon domain and subdomain gets its own row in the table, and its own PHP version. Changing the primary domain does not change the others. Parked domains (aliases) are not listed at all, because they follow the domain they are parked on. If a site is not behaving after a change, confirm you edited the row for the exact hostname the browser is requesting, including any `www` or subdomain variant listed separately.

### The "inherit" setting

A domain set to **inherit** follows the server-wide default PHP version rather than holding a version of its own. That is convenient, but it means the site can move to a different PHP release when the server default is updated. If a site is fragile or pinned to an older application, set an explicit version instead of leaving it on **inherit** so it never moves without you.

### PHP-FPM is shown per domain, but set by the server administrator

MultiPHP Manager shows a **PHP-FPM** enabled or disabled indicator for each domain, but you cannot switch it from cPanel: the server administrator enables or disables PHP-FPM in WHM. A domain on **inherit** cannot use PHP-FPM, so it needs an explicit PHP version first. If you want PHP-FPM on or off for a domain, open a ticket with Noiz support.

### An .htaccess handler line can override your choice

Old migrations and some installers leave hard-coded PHP handler lines in `.htaccess`, typically an `AddHandler` or `AddType` line referencing `php5-script`, `php7` or a similar value. Those lines win over the MultiPHP Manager setting, so the panel shows one version while the site runs another. Check the `.htaccess` file in the affected document root and remove any stale handler lines before assuming the panel is at fault.

### CloudLinux PHP Selector, if your account has it

On accounts where CloudLinux PHP Selector is available, only domains left on **inherit** (the system default) with PHP-FPM off use the Selector, and for those the version, extensions and PHP options come from **Select PHP Version**. Setting an explicit version here takes the domain out of the Selector's control: it then runs the MultiPHP version you chose, with that version's own extensions (installed on the server) and settings (edit the settings in **MultiPHP INI Editor**), and your Selector choices no longer apply to it. The Selector's **My domains** tab, where shown, lists which domains it governs.

### Version numbers in the drop-down move over time

The list of installed PHP versions changes as releases reach end of life and are removed from the server. A version that is present today may not be offered in a year. Plan to revisit the setting when your application vendor certifies a newer release rather than leaving it fixed indefinitely.

## Troubleshooting

**Symptom**: the site returns a blank white page or a 500 error straight after the change. The application is not compatible with the version you selected. Set the domain back to the previous version in MultiPHP Manager, confirm the site returns, then update the application, theme and plugins before trying again.

**Symptom**: a `phpinfo()` page or the application dashboard still reports the old version. Clear any full-page or object cache the site uses, then reload in a private browsing window. If it still reports the old version, look for an `AddHandler` or `AddType` line in `.htaccess` as described above.

**Symptom**: the version you want is not in the drop-down menu. That release is not installed on the server, usually because it is end of life. Pick the nearest supported release, or contact Noiz support to confirm what is available.

**Symptom**: the change applies but reverts later. The domain is set to **inherit** and is following the server default. Select the explicit version you want instead.

## Related Guides

- [How to Change the PHP Version on Your Domain in cPanel](/cpanel/how-to-change-the-php-version-on-your-domain-in-cpanel/)
- [How to Set the PHP Version per Directory in cPanel](/cpanel/how-to-set-the-php-version-per-directory-in-cpanel/)
- [How to Reset the PHP Version to the Default Version in cPanel](/cpanel/how-to-reset-the-php-version-to-the-default-in-cpanel/)
- [How to Change the PHP Version via CloudLinux Selector in cPanel](/cpanel/how-to-change-the-php-version-using-the-cloudlinux-selector-in-cpanel/)

## Need a Hand?

If you are not sure which PHP version a site can safely run, or a site broke after a version change, open a ticket with Noiz support from your client area. Include the domain, the version you moved from and to, and the exact error you are seeing. If your hosting plan uses a control panel other than cPanel, Noiz support will point you at the equivalent setting for your account.

---
Source: https://docs.noiz.ie/cpanel/how-to-set-a-different-php-version-per-domain-in-cpanel/
