Page tree
Skip to end of metadata
Go to start of metadata

This documentation is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 54

(Home >> Software >> MultiPHP Manager)

Important:

WHM's MultiPHP Manager interface only appears on systems that run EasyApache 4.

Overview

WHM's MultiPHP Manager interface allows you to easily manage the PHP configuration on your server. In this interface, you can manage the system's default PHP version, the PHP version of any virtual host on the system, and the handler that each PHP version uses. You can set a different PHP version for each virtual host.  

MultiPHP Manager

Select a tab to view more information about that section of the MultiPHP Manager  interface.

System PHP version

The System PHP Version functions as the global default for all accounts. When you create a new account, the account uses this version of PHP by default. Any primary domain that is set to Inherit uses the System PHP Version.  For more information, read our PHP Inheritance documentation. 

To change the system default PHP, perform the following steps:

  1. Click Edit in the System PHP Version section.
  2. Select your desired PHP version from the menu.
  3. Click Apply

Remember:

If you change the system default PHP version, the PHP version of any primary domain that is set to Inherit also changes.

Set PHP version per domain

In EasyApache 4, each domain or virtual host can use any currently installed PHP version. 

The list of accounts shows:

  • The domain's name
  • The domain's suspension status
  • The domain's account
  • The domain's PHP version  

Use the Search text box to search for specific domains. You can search by domain name, account name, or the current PHP version of the domain. Results update automatically as you type.  

Note:

Parked domains are aliases for a primary domain and are not listed in the user interface.

The PHP version per domain feature

To change an account's PHP version, perform the following steps:

  1. Select the checkbox next to the domain that you wish to change.
  2. Select the desired version of PHP in the PHP Version menu. If you want the account to always use the system default, select Inherit.
  3. Click Apply

Warning:

Incorrect ownership of an .htaccess file may cause failures when you change an account's PHP version. The user account must own the .htaccess file that you want to change and must have permissions of 644.

Manage PHP Handlers

In EasyApache 4, each PHP version can use its own PHP handler.

The list of PHP versions shows:

  • An installed PHP version
  • The PHP handler that version of PHP uses

To change the handler that a PHP version uses, perform the following steps:

  1. Click Edit next to the version of PHP whose handler you wish to change.
  2. Select the PHP handler from the menu.

    Notes:

    • The menu only shows the PHP handlers compatible with your selected version of PHP.

    • You can only use the DSO handler with one version of PHP.

  3. Click Apply.