mod_security config issue - Invalid command 'SecAuditLogFormat', perhaps misspelled or defined by a module not included in the server configuration

MMarko

Verified User
Joined
May 10, 2006
Messages
75
Location
eu
Has anyone encountered this config problem with mod_security after ./build rewrite_confs and Apache fails to start with error - Invalid command 'SecAuditLogFormat', perhaps misspelled or defined by a module not included in the server configuration?

We had to comment out SecAuditLogFormat line in /etc/httpd/conf/extra/httpd-modsecurity.conf and after that Apache was able to start without problems. Apache startup log:

Nov 29 18:26:37 nmservers.net systemd[1]: Starting The Apache HTTP Server...
Nov 29 18:26:37 nmservers.net httpd[3397222]: AH00526: Syntax error on line 12 of /etc/httpd/conf/extra/httpd-modsecurity.conf:
Nov 29 18:26:37 nmservers.net httpd[3397222]: Invalid command 'SecAuditLogFormat', perhaps misspelled or defined by a module not included in the server configuration
Nov 29 18:26:37 nmservers.net systemd[1]: httpd.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 18:26:37 nmservers.net systemd[1]: httpd.service: Failed with result 'exit-code'.
Nov 29 18:26:37 nmservers.net systemd[1]: Failed to start The Apache HTTP Server.

OS is CentOS Stream release 8, everything else is latest stable.

Is this something that maybe DirectAdmin staff can take a look and sort in update?

thanks
 
Thanks, yajl was the problem. Question is why installation script does not check for prerequisites and install it if it does not exist.
 
Back
Top