Hello,
When installing your cwaf plugin on EA4 (cPanel v 58) it fails as shown here:
http://imgur.com/a/HjRBe
The location of the new httpd.conf is:
/etc/apache2/conf/httpd.conf
Could you please fix this?
Should we add the line to that file?
Did try, but apache will not start:
restartsrv_httpd[405297]: httpd: Syntax error on line 28 of /etc/apache2/conf/httpd.conf: Syntax error on line 1 of /usr/local/apache/conf/modsec2.conf: Cannot load /opt/xml2/lib/libxml2.so into server: /opt/xml2/lib/libxml2.so: cannot
systemd[1]: httpd.service: control process exited, code=exited status=1
systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.
Thanks a lot.
We know about this issue and are going to fix it in the next CWAF-plugin release.
Path to httpd.conf is changed but there is a symlink in /usr/local/apache/conf/ on it.
ls -la /usr/local/apache/conf/
total 12
drwxr-xr-x. 2 root root 4096 Aug 8 18:07 ./
drwxr-xr-x. 4 root root 4096 Aug 5 10:47 …/
lrwxrwxrwx. 1 root root 28 Aug 5 10:47 httpd.conf → /etc/apache2/conf/httpd.conf
lrwxrwxrwx. 1 root root 28 Aug 5 10:47 includes → /etc/apache2/conf.d/includes/
lrwxrwxrwx. 1 root root 15 Aug 5 10:47 mime.types → /etc/mime.types
-rw-r–r–. 1 root root 972 Aug 8 18:09 modsec2.conf
lrwxrwxrwx. 1 root root 28 Aug 5 10:47 php.conf → /etc/apache2/conf.d/php.conf
Please, use /etc/apache2/conf.d/modsec2.conf for ModSecurity configuration.
Ok.
What should we add in that file as we want to use your plugin and not as a vendor in WHM?
after cPanel update I just include old config /usr/local/apache/conf/modsec2.conf
in /etc/apache2/conf.d/modsec2.conf
but there is
LoadFile /opt/xml2/lib/libxml2.so
in it and I have this file.
I get similar results with a fresh cPanel server and fresh CWAF install? Any idea when this might be fixed? I’d rather not patch files.
Thanks!