Configure or Disable PHP-FPM with User Pools for EasyApache 4
The information in this document only pertains to cPanel & WHM version 58 and earlier.
The FastCGI Process Manager (PHP-FPM) implementation of FastCGI provides process management, emergency restarts, and IP address restriction. You must perform extra steps to use this handler with user pools on a shared server.
Set up pools per user
You can only configure one PHP-FPM pool per user.
- These instructions assume that your server runs EasyApache 4.
- In the examples below, the following are true:
ea-php70represent the versions of PHP to use.
<user>represents a user on the system.
example.comrepresents the domain’s base directory.
<useraccount>represents the user’s account.
<vhost>represents the name of the virtual host.
To set up PHP-FPM for a shared server, select the tab that corresponds to your PHP version:
We introduced this feature in cPanel & WHM version 58. Do not follow this configuration process for version 60 and later.
How to disable user pools
To disable user pools, perform the following steps:
- Remove the
fpm.conffile from the user’s include directory with the following command:
You must remove the directory before
rebuild httpdwill disable the include line.
- If the user’s system does not contain any other includes, remove the user’s include directory with the following command:
- Remove the FPM user configuration file with the following command:
- Rebuild the
httpdconfiguration with the following command:
- Stop and start the FPM with the commands appropriate for your version of OS:CentOS 5 & 6
/etc/init.d/ea-php56-php-fpm stop /etc/init.d/ea-php56-php-fpm startCentOS 7
systemctl stop ea-php56-php-fpm.service systemctl start ea-php56-php-fpm.service
- Restart Apache with the following command: