Apache Httpd failed to start with "Cannot load mod_security2 module" error on RHEL 8 or 9
Issue
- After
yum update
Apache Httpd on RHEL 8.x or 9.x failed to start with below error.
Jul 06 11:00:47 localhost httpd[852468]: httpd: Syntax error on line 163 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.modules.d/10-mod_security.conf: Cannot load modules/mod_security2.so into server: libyajl.so.2: cannot open shared object file: No such file or directory
mod_security
module in Apache Httpd preventing it from starting withlibyajl
dependency error.
Environment
- Red Hat Enterprise Linux (RHEL)
- 8.x
- 9.x
- RHEL Apache httpd 2.4.x
- Red Hat JBoss Core Services (JBCS) Apache httpd
- 2.4.x
- mod_security
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.