Author Topic: apache wont restart after enabling mod_security.  (Read 58 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
apache wont restart after enabling mod_security.
« on: June 25, 2024, 08:51:16 PM »
For some reason when you install mod_security the config file for it has an extra line:

LoadFile /usr/lib64/

Which errors out Apache when loading:

httpd: Syntax error on line 512 of /usr/local/apache/conf/httpd.conf: Syntax error on line 2 of /usr/local/apache/conf.d/mod_security.conf: Cannot load /usr/lib64/ into server: /usr/lib64/: cannot read file data: Is a directory


Removing that line makes it load fine.  Not sure if another file was supposed to be loaded by that line.   

Currently testing CWP on Alma Linux 9.4


Thanks!

Offline
****
Re: apache wont restart after enabling mod_security.
« Reply #1 on: June 25, 2024, 11:02:56 PM »
EL9 support is still in beta with CWP. Test for that error when it is fully production ready for AlmaLinux 9

Offline
****
Re: apache wont restart after enabling mod_security.
« Reply #2 on: June 27, 2024, 10:57:25 PM »
There seems to be a install problem.

Code: [Select]
nano /usr/local/apache/conf.d/mod_security.conf
Line 2 – Add – liblua-5.4.so to the end.

Code: [Select]
systemctl start httpd
« Last Edit: June 27, 2024, 11:00:39 PM by Starburst »