jensvoid / lorg

Apache Logfile Security Analyzer
GNU General Public License v2.0
209 stars 50 forks source link

Fatal error: Call to undefined function pcntl_signal() in lorg on line 946 #1

Closed jimmyfive closed 11 years ago

jimmyfive commented 11 years ago

While trying to perform the analysis, I got the fatal error message:

Fatal error: Call to undefined function pcntl_signal() in lorg on line 946

Command used: lorg -d phpids -u -i combined -g access-2013-08-20.log

Thanks

jensvoid commented 11 years ago

The extension for process control support in PHP is not installed/enabled. It should be standard in most Linux distros, which one are you using?

As a quick workarround: simply remove/comment out line 946:

# declare(ticks = 1); pcntl_signal(SIGINT, "clean_exit");

(this line is for handling CTRL+C and writing a partial report, but you might not need it)

jimmyfive commented 11 years ago

Hi, thank you for the fast response. I am using SIFT 2.14. I followed the link you provided, downloaded a new version of PHP and compiled it with the --enable-pcntl option. That really fixed the problem. Thank you for the help.