Before attempting to set the PHP-FPM setting for a domain, the PHP-FPM packages must be installed when re-compiling EasyApache 4.

if you see a message indicating that PHP-FPM is not available, it means that your system does not contain one or more of the required PHP-FPM packages.

If that is the case, perform the following steps to install the required PHP-FPM packages:

Click Install.

A new window will appear.

Click Provision.

Once that is set or if this process has been completed, then just:

1. Select the checkbox next to the domain that you wish to change.
2. Select On to activate PHP-FPM or Off to deactivate it.
3. Click Apply.

Again, you have to ensure that the domain PHP version is not set to Inherit.

The system will not allow you to set PHP-FPM for that domain until you select a PHP version other than Inherit.

Note that when you enable FPM on an account's primary domain and later change that domain's name, the system will disable FPM for that new domain.

You must manually re-enable FPM on the new domain if you wish to use FPM for the new domain.

If you wish to enable PHP-FPM on all new domains by default, you will need to create a touch file.

Log in to the command line as the root user and create the /var/cpanel/ApachePHPFPM/default_accounts_to_fpm touch file with the following command:

mkdir -p /var/cpanel/ApachePHPFPM && touch /var/cpanel/ApachePHPFPM/default_accounts_to_fpm
Was this answer helpful? 0 Users Found This Useful (0 Votes)