Jump to content

Featured Replies

Posted

after mod security install httpd will not start

httpd: Syntax error on line 516 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

here are the lines
line 2 of mod_security.conf: LoadFile /usr/lib64/
line 516 of httpd.conf: Include /usr/local/apache/conf.d/*.conf
 

  • Author

hi i used the install option from inside CWP how would i manually update ? if you look above it seems its pointing to a directory instead of a file to load.

@c64solved by himself

Quote

hi i was able to fix the issue by deleting line 2 of mod_security.conf apache runs now and mod security test pass it seems it may be a problem either from the install module or when it initially creates the .conf file, also unrelated i tried asking this question on the control web panel forum however when i click on post it would give me a web server error 

 

  • 10 months later...
  • 5 months later...

Just saw your post, sorry, guess I need to come on here more also.
Am usually hanging out in the CWP Forums.

That seems to still be a bug in CWP with it installs ModSecurity.

But it is simple to fix.

nano /usr/local/apache/conf.d/mod_security.conf

At the end of line 2 – Add – liblua-5.4.so

Save & Exit

systemctl restart httpd

Create an account or sign in to comment