Skip to main content

How to Assign a PHP Version to a Domain in WHM

Assign a specific PHP version to a domain to ensure compatibility with your website's applications or to optimize performance. This process is performed by a Server Administrator within the WHM interface.

Assign a specific PHP version to a domain to ensure compatibility with your website's applications or to optimize performance. This process is performed by a Server Administrator within the WHM interface.

Before you begin

You will need:

  • Server Administrator access to WHM

  • The specific domain name you wish to modify

  • Knowledge of the PHP version required by your application (e.g., PHP 7.4, 8.1, 8.2)

Assign a PHP version to a domain

  1. Log in to WHM.

  2. In the left-hand navigation search bar, type MultiPHP Manager and select it from the results.

  3. Locate the domain you want to modify in the list of accounts.

  4. Click the PHP Version dropdown menu next to that domain.

  5. Select the desired PHP version from the list.

  6. Click Apply (or the equivalent confirmation button) at the top or bottom of the page.

Confirm the result

  • The page will refresh, and the domain's row will now display the selected PHP version.

  • You can verify the change by visiting the website and checking the PHP version via a script or by checking the site's behavior.

Limitations

This procedure only changes the PHP version for the specific domain selected. It does not affect other domains on the server unless they are also manually updated. If a version is not available in the dropdown, it may not be installed on the server or supported by your current configuration.

Did this answer your question?