First, i want to clarify that i know from where the alerts are comming and that CSF/LFD is not part of cPanel, i know how to "disable" or prevent the CSF/LFD alerts, and thats not what i want to do...
The issue is not with CSF/LFD exactly, is from cPanel php-fpm directly let me explain:
Here is one of the alerts im receiving everyday since a past cPanel update WHERE cpanel started using php-fpm as the default php handler for cPanel processes:
Subject: lfd on host.server.com: Excessive resource usage: useraccount (30966 (Parent PID:30443))
Time: Thu Oct 20 10:29:40 2022 -0500
Account: useraccount
Resource: Process Time
Exceeded: 2165 > 2100 (seconds)
Executable: /usr/local/cpanel/3rdparty/php/74/sbin/php-fpm
Command Line: php-fpm: pool user_useraccount
PID: 30966 (Parent PID:30443)
Killed: No
I know what this mean and that if i change the time on CSF/LFD or ignore the user account or ignore the executable the alerts are going to go away, but thats not the purpose of CSF/LFD in that case if i will start to ignore users and processes is better to remove CSF/LFD.
What i see here is that this alerts are comming after cPanel change the handler to php-fpm;
After investigating, the alerts im receiving are from users that are using roundcube, however, with php-fpm is not possible to ignore the roundcube executable, and, if you raise the time to receive an alert (that is not what i want for my server) the alerts keeps triggering because the user keeps the roundcube opened in their browser, there are users that leave their browser with roundcube opened all the 24hours of the day.
If you ignore the executable you will not receive alerts when a accounts get compromised or a user uses a php file to do nasty things, if you ignore the user pool is the same.
So, the problem i see is that they way that php-fpm works there is no way to se the exact filename, process or executable that is triggering the alerts...
My question is no how can i get rid of the alerts but many questions:
1) How can i properly handle the executable or files when using php-fpm?
2) How can i properly add roundcube to ignore if php-fpm only shows the user pool so i can still watching the users processes?
3) Is there a way to completely disable php-fpm for cpanel processes?
3.1) Turning PHP-FPM service for cPanel Daemons off on "WHM>>Service Configuration>> Service Manager" is not a way because it turn on automatically after few hours/days (SOLVED - CPANEL-37047 - How to disable PHP-FPM for cpanel) and the option to disable it will be removed in future.
4) Is there a way that the php-fpm service for cPanel Daemons are handled by different handler like suphp instead of cgi/fcgi so we can keep track of the real executable and ignore them properly?
The issue is not with CSF/LFD exactly, is from cPanel php-fpm directly let me explain:
Here is one of the alerts im receiving everyday since a past cPanel update WHERE cpanel started using php-fpm as the default php handler for cPanel processes:
Subject: lfd on host.server.com: Excessive resource usage: useraccount (30966 (Parent PID:30443))
Time: Thu Oct 20 10:29:40 2022 -0500
Account: useraccount
Resource: Process Time
Exceeded: 2165 > 2100 (seconds)
Executable: /usr/local/cpanel/3rdparty/php/74/sbin/php-fpm
Command Line: php-fpm: pool user_useraccount
PID: 30966 (Parent PID:30443)
Killed: No
I know what this mean and that if i change the time on CSF/LFD or ignore the user account or ignore the executable the alerts are going to go away, but thats not the purpose of CSF/LFD in that case if i will start to ignore users and processes is better to remove CSF/LFD.
What i see here is that this alerts are comming after cPanel change the handler to php-fpm;
After investigating, the alerts im receiving are from users that are using roundcube, however, with php-fpm is not possible to ignore the roundcube executable, and, if you raise the time to receive an alert (that is not what i want for my server) the alerts keeps triggering because the user keeps the roundcube opened in their browser, there are users that leave their browser with roundcube opened all the 24hours of the day.
If you ignore the executable you will not receive alerts when a accounts get compromised or a user uses a php file to do nasty things, if you ignore the user pool is the same.
So, the problem i see is that they way that php-fpm works there is no way to se the exact filename, process or executable that is triggering the alerts...
My question is no how can i get rid of the alerts but many questions:
1) How can i properly handle the executable or files when using php-fpm?
2) How can i properly add roundcube to ignore if php-fpm only shows the user pool so i can still watching the users processes?
3) Is there a way to completely disable php-fpm for cpanel processes?
3.1) Turning PHP-FPM service for cPanel Daemons off on "WHM>>Service Configuration>> Service Manager" is not a way because it turn on automatically after few hours/days (SOLVED - CPANEL-37047 - How to disable PHP-FPM for cpanel) and the option to disable it will be removed in future.
4) Is there a way that the php-fpm service for cPanel Daemons are handled by different handler like suphp instead of cgi/fcgi so we can keep track of the real executable and ignore them properly?