Resellers or customers with "root" access can manage the PHP and PHP-FPM configurations of their cPanel accounts by logging to WHM and scrolling down to Software >> MultiPHP Manager.

Each domain or virtual host can use any currently-installed PHP version or currently-installed PHP-FPM setting.

You will be able to see:

  • The name of the domain
  • The domain's account name
  • The account's owner's name
  • The PHP version that the domain currently uses, and if the account inherited that setting
  • The domain's PHP-FPM status


However, parked domains represent aliases for a primary domain and the system will not list these in the user interface.

And from here, you can manage the PHP version, PHP-FPM setting, or Pool Option of each virtual host.

You can also use the search box to search by domain name, account name, account owner's name, the current PHP version of the domain, or the current PHP-FPM setting of the domain.


Now, the System PHP Version functions as the global default for all accounts.

When a new account is created, the account uses this version of PHP by default.

Any primary domain that you set to "Inherit" will use the System PHP Version.

If you want to change the system default PHP, follow these steps:

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


To set the System PHP-FPM Status to On, perform the following steps:

  1. Log in to WHM as the root user.
  2. Navigate to WHM's MultiPHP Manager interface (WHM >> Home >> Software >> MultiPHP Manager).
  3. In the System PHP-FPM section, click the blue Turn On button next to System PHP-FPM Status. The system will display the Convert All Accounts to PHP-FPM button.

To convert all your accounts to PHP-FPM so every account will use PHP-FPM by default, click Convert All Accounts to PHP-FPM.

The system will display a success message.


To turn the System PHP-FPM Status, perform the following steps:

  1. Log in to WHM as the root user.
  2. Navigate to WHM's MultiPHP Manager interface (WHM >> Home >> Software >> MultiPHP Manager).
  3. In the System PHP-FPM section, click the blue Turn Off button next to System PHP-FPM Status.

Your status will now display as Off and all of your accounts will no longer run with PHP-FPM enabled.

 

Additionally:

a. if the PHP version does not match the required PHP-FPM installed packages, the system will not allow you to convert all of your accounts to PHP-FPM.
b. you cannot convert all of your accounts to PHP-FPM until you install the appropriate PHP-FPM packages for the specified PHP version.
c. you can enable or disable PHP-FPM for all accounts.
d. when enabled, the system automatically enables PHP-FPM for new accounts, domains, subdomains, and addon domains that are created.


If you want to change individual account's PHP version from system default PHP, follow these 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 parent domain's PHP version, select Inherit. An account that you set to Inherit with no parent domain uses the system default.
  3. Click Apply.


The system changes the selected domain's PHP version.

It is worth noting that when you change the PHP version of a domain with FPM enabled, the system changes the domain's 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.

Also, incorrect ownership of a .htaccess file may cause failures when you change an account's PHP version.

The cPanel user account must own the .htaccess file that you want to change, and that file must use 644 permissions.

آیا این پاسخ به شما کمک کرد؟ 0 کاربر این را مفید یافتند (0 نظرات)