Public bug reported:

Dear sirs

I'm trying to install libapache2-mod-security2 (2.9.2-4502xenial) as
follows:

apt-get install libapache2-mod-security2


but I'm getting this error message:

apache2_reload: Your configuration is broken. Not restarting Apache 2
apache2_reload: apache2: Syntax error on line 144 of /etc/apache2/apache2.conf: 
Syntax error on line 12 of /etc/apache2/mods-enabled/security2.conf: Could not 
open configuration file /usr/share/modsecurity-crs/owasp-crs.load: No such file 
or directory

Indeed the file:
/usr/share/modsecurity-crs/owasp-crs.load

does not exist. Here line 144 of /etc/apache2/apache2.conf:
IncludeOptional mods-enabled/*.conf

Then line 12 of /etc/apache2/mods-enabled/security2.conf:
IncludeOptional /usr/share/modsecurity-crs/owasp-crs.load

So, it is trying to include an nonexistent file and that's why apache
fails to start. Removing libapache2-mod-security2 solves the issue.

I'm having this issue in three servers using: "Ubuntu 16.04.4 LTS", so,
it must be something wrong with the package.

Thanks in advanced
Josef Meile

** Affects: modsecurity-apache (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apache2 libapache2-mod-security2

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1775167

Title:
  libapache2-mod-security2 broken configuration

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/modsecurity-apache/+bug/1775167/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to