Removing Zombie php-fpm processes from VPS server to bring back unresponsive websites

·

Case Scenario:

Cloudlinux is removed at kernel level and LiteSpeed server is also removed. Apache is set as default and its restarted also. Sites became live but went down after few days again.

curl -I http://127.0.0.1
uname -r
httpd -M | grep hostinglimits
cldeploy -c
apachectl fullstatus
ps -eo pid,stat,etime,cmd | grep httpd | grep -v grep
ps aux | grep -E 'php-fpm|lsphp|lsapi' | grep -v grep
systemctl stop ea-php81-php-fpm
systemctl stop ea-php82-php-fpm
systemctl stop php-fpm
pkill -9 php-fpm
ps aux | grep php-fpm | grep -v grep
systemctl start ea-php81-php-fpm
systemctl restart httpd
ps aux | grep -E 'php-fpm|lsphp|lsapi' | grep -v grep
pkill -9 -f "/usr/local/cpanel/etc/php-fpm.conf"
vi /opt/cpanel/ea-php81/root/etc/php-fpm.d/*.conf
systemctl restart ea-php81-php-fpm