Is this problem fixed in 1.692?I receive the following error by updating Apache in combination with ModSecurity:
httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /etc/httpd/conf/extra/httpd-modsecurity-enable.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-modsecurity.conf: Cannot load /usr/local/lib/libxml2.so into server: /usr/local/lib/libxml2.so: cannot open shared object file: No such file or directory
I can fix it by commenting the first row in /etc/httpd/conf/extra/httpd-modsecurity.conf with the text "#LoadFile /usr/local/lib/libxml2.so".
But after building ModSecurity or Apache, the problem is back.
It was most likely caused by custom configuration, check for custom files in /usr/local/directadmin/custombuild/custom.Is this problem fixed in 1.692?
This is the apache config file running atm:It was most likely caused by custom configuration, check for custom files in /usr/local/directadmin/custombuild/custom.
#!/bin/sh
"./configure" \
"--enable-systemd" \
"--prefix=/etc/httpd" \
"--exec-prefix=/etc/httpd" \
"--bindir=/usr/bin" \
"--sbindir=/usr/sbin" \
"--sysconfdir=/etc/httpd/conf" \
"--enable-so" \
"--enable-dav" \
"--enable-dav-fs" \
"--enable-dav-lock" \
"--enable-suexec" \
"--enable-deflate" \
"--enable-unique-id" \
"--enable-cgi" \
"--disable-cgid" \
"--enable-mods-static=most" \
"--enable-mpms-shared=all" \
"--with-suexec-caller=apache" \
"--with-suexec-docroot=/" \
"--with-suexec-gidmin=100" \
"--with-suexec-logfile=/var/log/httpd/suexec_log" \
"--with-suexec-uidmin=100" \
"--with-suexec-userdir=public_html" \
"--with-suexec-bin=/usr/sbin/suexec" \
"--with-included-apr" \
"--includedir=/usr/include/apache" \
"--libexecdir=/usr/lib/apache" \
"--libdir=/usr/lib/apache" \
"--mandir=/usr/share/man" \
"--datadir=/var/www" \
"--localstatedir=/var" \
"--enable-logio" \
"--enable-ssl" \
"--enable-rewrite" \
"--enable-http2" \
"--enable-proxy" \
"--enable-expires" \
"--enable-reqtimeout" \
"--with-ssl=/usr" \
"--disable-md" \
"--enable-headers"
This is the apache config file running atm:
Code:#!/bin/sh "./configure" \ "--enable-systemd" \ "--prefix=/etc/httpd" \ "--exec-prefix=/etc/httpd" \ "--bindir=/usr/bin" \ "--sbindir=/usr/sbin" \ "--sysconfdir=/etc/httpd/conf" \ "--enable-so" \ "--enable-dav" \ "--enable-dav-fs" \ "--enable-dav-lock" \ "--enable-suexec" \ "--enable-deflate" \ "--enable-unique-id" \ "--enable-cgi" \ "--disable-cgid" \ "--enable-mods-static=most" \ "--enable-mpms-shared=all" \ "--with-suexec-caller=apache" \ "--with-suexec-docroot=/" \ "--with-suexec-gidmin=100" \ "--with-suexec-logfile=/var/log/httpd/suexec_log" \ "--with-suexec-uidmin=100" \ "--with-suexec-userdir=public_html" \ "--with-suexec-bin=/usr/sbin/suexec" \ "--with-included-apr" \ "--includedir=/usr/include/apache" \ "--libexecdir=/usr/lib/apache" \ "--libdir=/usr/lib/apache" \ "--mandir=/usr/share/man" \ "--datadir=/var/www" \ "--localstatedir=/var" \ "--enable-logio" \ "--enable-ssl" \ "--enable-rewrite" \ "--enable-http2" \ "--enable-proxy" \ "--enable-expires" \ "--enable-reqtimeout" \ "--with-ssl=/usr" \ "--disable-md" \ "--enable-headers"
/usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-modsecurity.conf
/usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-modsecurity.conf
Hi,@Marwen, please open a support ticket. There should be no changes in how custom template files between the 1.690 and 1.691 versions.
Thanks!You are looking at wrong file.
Check your custom file located here:
and compare with the file that directadmin uses:Code:/usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-modsecurity.conf
Code:/usr/local/directadmin/custombuild/configure/ap2/conf/extra/httpd-modsecurity.conf
You'll notice that DA file does not have any libxml2.so load line, and some other slight changes.
Consider removing the custom file to fall back to the default DA modsecurity file.