How to ignore PHP scripts run from Cron
Posted: 06 Dec 2017, 22:23
Hi Guys
I've been trying for a month to stop LFD warnings from legitimate PHP scripts that are run from cron, but none of the suggestions I've found are working.
I've tried ...
In /etc/csf/csf.signore
/path/to/script.php
In /etc/csf/csf.pignore
cmd:php /path/to/script.php
exe:/path/to/script.php
exe:/opt/cpanel/ea-php72/root/usr/bin/php-cgi /path/to/script.php
exe:/bin/bash -c /usr/bin/php /path/to/script.php >/dev/null 2>&1
But every day I get " Suspicious process running under user xxxx" emails.
What is the correct syntax to ignore these scripts?
I've been trying for a month to stop LFD warnings from legitimate PHP scripts that are run from cron, but none of the suggestions I've found are working.
I've tried ...
In /etc/csf/csf.signore
/path/to/script.php
In /etc/csf/csf.pignore
cmd:php /path/to/script.php
exe:/path/to/script.php
exe:/opt/cpanel/ea-php72/root/usr/bin/php-cgi /path/to/script.php
exe:/bin/bash -c /usr/bin/php /path/to/script.php >/dev/null 2>&1
But every day I get " Suspicious process running under user xxxx" emails.
What is the correct syntax to ignore these scripts?