Page 1 of 1

Bug in CSF 2.75 and cPanel 11.4.2-C13422

Posted: 07 Jun 2007, 06:13
by Craigles
Hi Guys,

I've come across an interesting issue on a number of Centos 4.5, cPanel 11 and CSF installations.

For some reason when running Check Server Security, it starts to render the screen and then just stops with this error at the top of the screen. It gets to the Check Shell Limits line and then dies.

[a fatal error or timeout occurred while processing this directive]

I've tried on Release and Current branches of cPanel 11, to no avail.

Anyone have any ideas at all??

Happy to provide ssh and whm access if somebody wants to gander at it.

Ta,
Craig

Posted: 08 Jun 2007, 05:51
by rosslittle
Confirmed... exactly the same error here (same distro and version, CPanel Build too)

Ross

Further Updates

Posted: 08 Jun 2007, 06:02
by Craigles
Howdy All,

I have further info on this.

1. It appears if CSF was installed prior to upgrade to cPanel 11, all is fine.
2. Fresh installs of cPanel and CSF cause the timeout issue.
3. If you execute the following command, it gets around the timeout issue.

echo "" >/var/cpanel/killproc.conf

Thats about all I've got for ya. From my observations, it may be more of a cPanel bug then CSF.

Hope it helps someone else out.

Craig

Posted: 08 Jun 2007, 06:07
by rosslittle
Yeah, I cam at it from a different angle...

This is what my error_log says

(internal death while parsing ) Fri Jun 8 04:53:13 2007 [3176] error: No such file or directory at /etc/csf/servercheck.pm line 635.
at /etc/csf/servercheck.pm line 635
main::sshtelnetcheck called at /etc/csf/servercheck.pm line 13
require /etc/csf/servercheck.pm called at ./cgi/addon_csf.cgi line 399

At lin 635 of /etc/csf/servercheck.pm

open (IN, "</var/cpanel/killproc.conf") or die $!;

I don't have a killproc.conf file anywhere on my server!?!

Anyway, I edited /etc/csf/servercheck.pm line 635 from this -

open (IN, "</var/cpanel/killproc.conf") or die $!;

to this

open (IN, "</var/cpanel/killproc.conf");

The script runs fine now and although the error still exists, it doesn't halt the rest of the script execution. The error was only in the detection of "Check Background Process Killer" which after fixing the script above will still show a big red warning!

Craigles solution works too... and is easier... and less hassle to type than mine... ;-)

Ross

Posted: 09 Jun 2007, 09:56
by chirpy
csf v2.76 now handles this situation.