PHP-FPM User Config Not Removed on Account Termination

prescolt

Registered
Nov 21, 2016
1
0
1
Vietnam
cPanel Access Level
Root Administrator
Dear
I have issue, when i termiated account with have domain running php-fpm, after complete terminate, all of data in home dir deleted but fpp-fpm config of user do not deleted, so when server reboot or service php-fpm reboot, the config cause service can not start because "chdir = /home/gutkpzyt" in conf not exist anymore and http log show message like this. So is must delete user config in "/opt/cpanel/ea-php70/root/etc/php-fpm.d/" manualy. Please fix this issue soon. thank
Code:
run/php-fpm/a8ebb7a7e137f559497b58054b42d663dbfd7536.sock (*) failed
[Mon Nov 21 00:59:28.660376 2016] [proxy:error] [pid 19506] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/cpanel/ea-php70/root/usr/var/run/php-fpm/a8ebb7a7e137f559497b58054b42d663dbfd7536.sock (*) failed
[Mon Nov 21 01:00:08.366782 2016] [proxy:error] [pid 19703] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/cpanel/ea-php70/root/usr/var/run/php-fpm/50edc959755d2be1eac7408492b175009c09663b.sock (*) failed
[Mon Nov 21 01:00:08.367008 2016] [proxy:error] [pid 19703] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /opt/cpanel/ea-php70/root/usr/var/run/php-fpm/50edc959755d2be1eac7408492b175009c09663b.sock (*) failed
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

I'm unable to reproduce this issue on cPanel version 60.0.25. Could you verify which version of cPanel is installed on the system?

Code:
cat /usr/local/cpanel/version
Also, is it possible this is a custom configuration of PHP-FPM on cPanel version 58? If so, please ensure to revert any steps you took to enable PHP-FPM manually on cPanel version 58. As of cPanel 60, it's natively supported:

In cPanel & WHM version 60, we enabled the ability to set up and manage MultiPHP FPM pools in WHM's MultiPHP Manager interface (Home >> Software >> MultiPHP Manager). These pool options enable site configuration and for PHP-FPM to handle any incoming PHP requests that their domain receives. PHP-FPM increases the performance of the site with additional server resources. WHM's MultiPHP Manager interface (Home >> Software >> MultiPHP Manager) now prompts a user to install specific packages if their system does not contain the appropriate FPM dependencies.

Thank you.
 

Yukinarija

Member
Nov 2, 2016
18
1
3
Lithuania
cPanel Access Level
Root Administrator
Got the same issue today. Moved several domains with the transfer tool and had these strange PHP-FPM zones mail.*.com (which were subdomains I presume?). (Shared server..)

PHP failed to work and generated gazillion GB log file.
Deleting php fpm zone and restarting worked.