Knowledgebase: WHM > Software > MultiPHP Manager
MultiPHP Manager
Posted by Matthew Jeffels, Last modified by Matthew Jeffels on 21 December 2016 11:03 AM

MultiPHP Manager

This interface allows you to easily manage the PHP and PHP-FPM configurations. 

The system PHP Version refers to version of PHP that is the global default for all accounts. Only the system administrator will be able to set the system PHP version. Any primary domain that is set to Inherit will then use the system PHP Version.

PHP FastCGI Process Manager (PHP-FPM) is an alternative PHP module that aids in websites ability to handle strenuous loads on the site. PHP-FPM maintains pools of workers available to respond to PHP requests. These pools of workers allow the website to handle more requests than it normally could.

The "Pool Options" allows you to set automated workers for your server. This will enable your system to run faster and smoother at the expense of more processes.

List of domains

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

The list of domains displays the following;

The name of the domain
The domain's account name
The PHP version that the domain currently uses A PHP-FPM enabled/disabled indicated by a tick or a cross. Parked domains represent aliases for a primary domain. The system does not list these in the user interface.

You can use the "Search" textbox to search for a specific domain. You can search by domain name, account name, current PHP version of the domain, or the current PHP-FPM setting of the domain. The results will update automatically as you type.

Set a Domains PHP Version

In order to change an account's PHP version you will need to perform the following;

Select the checkbox next to the domain that you wish to change.
Select the desired version of PHP in the PHP Version menu. If you want the account to always use the system default, select Inherit.
Click Apply. The system changes the selected domain's PHP version. The system displays a ✓ or an × under the PHP-FPM column next to your domain. The ✓ indicates that PHP-FPM is enabled on that domain and an × indicates that it is disabled.

You can enable or disable PHP-FPM on your domains through WHM's MultiPHP Manager interface found via Home >> Software >> MultiPHP Manager.

When you change the PHP version of your domain and FPM is enabled, the system changes your FPM version to match that of the PHP version selected. If FPM is not enabled on your domain, the system changes the PHP and FPM versions separately. 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 that file must use "644" permissions.

Set a domains PHP-FPM packages

Before you can set the PHP-FPM setting for a domain you will need to perform the following steps to ensure that your system contains the necessary packages;

First you should install required PHP-FPM packages. This will be indicated by the presence of a message that informs you about the missing packages indicating that your system does not contain one or more of the required PHP-FPM packages. To install the missing packages click "Go to EasyApache 4" and use the interface to install the required PHP-FPM packages.

Once you have installed the packages you will need to set the PHP-FPM settings for your domain.

To turn on or off an account's PHP-FPM setting you will need to perform the following;

Select the checkbox next to the domain that you wish to change.
Select the desired setting of PHP-FPM in the PHP-FPM menu. If you want the account to always use the system default, select Inherit. If you set your PHP version to Inherit, the system will not allow you to set PHP-FPM. You must select a PHP version other than Inherit.
Select On to activate PHP-FPM or Off to deactivate it.
Click Apply.

To select all of an account's PHP-FPM settings, you will need to perform the following;

Select the checkbox to the left of Domain. This selects all of the domain's accounts in the list.
Select On to activate PHP-FPM for all selected domains or Off to deactivate it. Click Apply.

If you enable FPM on a cPanel account's primary domain and then change that domain's name, the system will disable FPM for that new domain. You must re-enable FPM on the new domain if you wish to use FPM for the new domain.

Set a domains pool options

In order to set a domain's pool options, you will need to perform the following;

First click Pool Options next to your desired domain. The system will display the following options and their defaults and limits:

Max Children, By default this is set to 5, and can be in the range of 1-10,000.
Process Idle Timeout(s), By default this is set to 10, and can be in the range of 1-10,000,000
Max Requests, By default this is set to 20, and can be in the range of 1-10,000,000

Be aware that if you set your PHP version to Inherit, the system will not allow you to set PHP-FPM or pool options. You must select a PHP version other than Inherit and set PHP-FPM to "On" in order to have access to pool options.

You will then need to enter your desired options for Max Children, Process Idle Timeout(s), and Max Requests.
Then click "Save".

The system will display the following success message: Successfully applied PHP-FPM Pool options to the selected domain. 

Thanks

Matt Jeffels
PAC Web Hosting

(0 vote(s))
Helpful
Not helpful

Comments (0)