How to ignore PHP scripts run from Cron

Post Reply
mikelegg
Junior Member
Posts: 43
Joined: 10 Nov 2007, 03:10

How to ignore PHP scripts run from Cron

Post by mikelegg »

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?

consultant
Junior Member
Posts: 16
Joined: 24 Aug 2016, 04:49

Re: How to ignore PHP scripts run from Cron

Post by consultant »

Same issue. Banging my head against a wall. Did you ever figure it out?

mikelegg
Junior Member
Posts: 43
Joined: 10 Nov 2007, 03:10

Re: How to ignore PHP scripts run from Cron

Post by mikelegg »

The warnings have stopped, but it's so long ago, I don't know what finally fixed it.

I can see I have entries in /etc/csf/csf.signore

Maybe these finally worked.

Post Reply