libapache2-mod-security2 broken configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
modsecurity-apache (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Dear sirs
I'm trying to install libapache2-
apt-get install libapache2-
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/
Indeed the file:
/usr/share/
does not exist. Here line 144 of /etc/apache2/
IncludeOptional mods-enabled/*.conf
Then line 12 of /etc/apache2/
IncludeOptional /usr/share/
So, it is trying to include an nonexistent file and that's why apache fails to start. Removing libapache2-
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
I just found this: /github. com/oerdnj/ deb.sury. org/issues/ 714
https:/
One comment of jaydrogers suggest to do this:
wget http:// mirrors. kernel. org/ubuntu/ pool/universe/ m/modsecurity- crs/modsecurity -crs_3. 0.0-3_all. deb crs_3.0. 0-3_all. deb
sudo dpkg -i modsecurity-
It actually fixes the issue, but I guess this should be fixed in the official package.