[tools] update.script

Do you like use update.script ?

  • yes, all time

    Votes: 221 69.1%
  • no, some time

    Votes: 44 13.8%
  • some time

    Votes: 55 17.2%

  • Total voters
    320
I'm running into the same error that Darkus had:

I have a brand new clean install of DA with Apache 2.2.8 and PHP5 and i used this script to install MODSecurity2 and I get these errors on install:

PHP:
msc_xml.h:17:31: error: libxml/xmlschemas.h: No such file or directory
msc_xml.h:18:26: error: libxml/xpath.h: No such file or directory
In file included from modsecurity.h:38,
                 from mod_security2.c:16:
msc_xml.h:23: error: expected specifier-qualifier-list before 'xmlSAXHandler'
make: *** [mod_security2.slo] Error 1
make[1]: Entering directory `/usr/local/updatescript/modsecurity2/modsecurity-apache_2.1.5/apache2'
/usr/local/directadmin/custombuild/httpd-2.2.8/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -I/usr/local/include  -O2 -g -Wuninitialized -Wall -Wmissing-prototypes -Wshadow -Wunused-variable -Wunused-value -Wchar-subscripts -Wsign-compare -DWITH_LIBXML2 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE   -I /usr/include/libxml2 -I /path/to/httpd-x.y/srclib/pcre -I. -I/usr/local/directadmin/custombuild/httpd-2.2.8/os/unix -I/usr/local/directadmin/custombuild/httpd-2.2.8/server/mpm/prefork -I/usr/local/directadmin/custombuild/httpd-2.2.8/modules/http -I/usr/local/directadmin/custombuild/httpd-2.2.8/modules/filters -I/usr/local/directadmin/custombuild/httpd-2.2.8/modules/proxy -I/usr/local/directadmin/custombuild/httpd-2.2.8/include -I/usr/local/directadmin/custombuild/httpd-2.2.8/modules/generators -I/usr/local/directadmin/custombuild/httpd-2.2.8/modules/mappers -I/usr/local/directadmin/custombuild/httpd-2.2.8/modules/database -I/usr/local/directadmin/custombuild/httpd-2.2.8/srclib/apr/include -I/usr/local/directadmin/custombuild/httpd-2.2.8/srclib/apr-util/include -I/usr/local/directadmin/custombuild/httpd-2.2.8/srclib/apr-util/xml/expat/lib -I/usr/local/include -I/usr/local/directadmin/custombuild/httpd-2.2.8/modules/proxy/../generators -I/usr/include -I/usr/kerberos/include -I/usr/local/directadmin/custombuild/httpd-2.2.8/modules/ssl -I/usr/local/directadmin/custombuild/httpd-2.2.8/modules/dav/main -prefer-pic -c mod_security2.c && touch mod_security2.slo
In file included from modsecurity.h:38,
                 from mod_security2.c:16:
msc_xml.h:17:31: error: libxml/xmlschemas.h: No such file or directory
msc_xml.h:18:26: error: libxml/xpath.h: No such file or directory
In file included from modsecurity.h:38,
                 from mod_security2.c:16:
msc_xml.h:23: error: expected specifier-qualifier-list before 'xmlSAXHandler'
make[1]: *** [mod_security2.slo] Error 1
make[1]: Leaving directory `/usr/local/updatescript/modsecurity2/modsecurity-apache_2.1.5/apache2'
make: *** [install-recursive] Error 1

And when I try to restart apache it tells me:

PHP:
Starting httpd: [Wed Jan 30 18:44:12 2008] [warn] module php5_module is already loaded, skipping
httpd: Syntax error on line 20 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/libxml2.so into server: /usr/lib/libxml2.so: cannot open shared object file: No such file or directory

Was there a solution for this?

Regards,
Jerret
 
Problem solved by installing libxml2-devel. I should have thought about this a little harder. :)

Cheers,
Jerret
 
Typo on lines 1150-1156

There's a typo on lines 1150-1156 which causes ./update.script MODsecurity2Apache2Rules to fail: modsecurity2rules.tar.gz is spelled modsecurity2ruls.tar.gz (missing the 'e' in rules).

Also, I have a question/favor to ask. In /etc/modsecurity2/config.conf there's the following command:

SecServerSignature "Power MOD by web4host.net"

Could we change this to something more anonymous? Such as:

SecServerSignature "Apache"

I figure this way potential hackers won't be able to easily identify the rules that are in use.

Thanks for all your help!

Cheers,
Jerret
 
Problem solved by installing libxml2-devel. I should have thought about this a little harder. :)

Cheers,
Jerret

Jerret, cool, how did you install this? I'm dieing to finally get ModSecurity installed :)

thanks!
 
I tried installing the Modsecurity 2.5 from this script on a 64-bit machine and it doesnt work, seems like a class mismatch
 
Were you able to get libxml2-devel installed? The package name may be different for a 64 bit system? I would try yum search libxml2 and see what gets returned. I googled 'libxml2-devel and 64 bit' and saw some references to 'libxml2-devel-64bit'.

Good luck.
 
Were you able to get libxml2-devel installed? The package name may be different for a 64 bit system? I would try yum search libxml2 and see what gets returned. I googled 'libxml2-devel and 64 bit' and saw some references to 'libxml2-devel-64bit'.

Good luck.

I think when I did a yum install it did install the 64bit version as well (at least both packages are listed) but this class mismatch error is still there, I am assuming the wrong version of mod security is installed, or to be honest I can't figure out what the problem is, very frustrating! :(
 
How is this script supposed to work with debian?

I have used this with centos many times but on this debian server when I try to update mysql to version 5 I get:

mysqld: no process killed
./update.script: line 489: rpm: command not found
./update.script: line 489: rpm: command not found
./update.script: line 489: rpm: command not found
./update.script: line 489: rpm: command not found
Delete all MySQL downloaded rpm

Why is it trying to use rpms with debian?

I called it via ./update.script MYSQL5032 Is that right?
 
How is this script supposed to work with debian?

I have used this with centos many times but on this debian server when I try to update mysql to version 5 I get:

mysqld: no process killed
./update.script: line 489: rpm: command not found
./update.script: line 489: rpm: command not found
./update.script: line 489: rpm: command not found
./update.script: line 489: rpm: command not found
Delete all MySQL downloaded rpm

Why is it trying to use rpms with debian?

I called it via ./update.script MYSQL5032 Is that right?

(Did not work with Debian & FreeBSD)
try to build mysql from DA script

Wael
 
I have spamassassin (version 3.1.7) running along with spamblocker.
Usedthis script to upgrade it to version 3.2.4. Apparently the installation
worked fine, but the incoming messages still show in its headers the old version.

So my impression is that I have 2 versions installed but the old version is the one
that is being executed. Any ideas to detect and remove the old version?


Hi All,

I ran the update script to update SpamAssasin to version 3.2.4.

The update ran fine,. but when I check the binary,. I'm still stuck on the old binaryl,.. even after a reboot.


server.com:/usr/local/updatescript # /usr/bin/spamd --version
SpamAssassin Server version 3.0.1
running on Perl
with SSL support (IO::Socket::SSL 1.06)

Any pointers?

-Alon.
 
Were you able to get libxml2-devel installed? The package name may be different for a 64 bit system? I would try yum search libxml2 and see what gets returned. I googled 'libxml2-devel and 64 bit' and saw some references to 'libxml2-devel-64bit'.

Good luck.

Ok I finally figured out the problem and how to fix it...

@how@ please add this change in for the 64bit users

You ask us to add this line in your instructions:

LoadFile /usr/lib/libxml2.so

For us 64bit users it needs to be changed to:

LoadFile /usr/lib64/libxml2.so
 
Hello.
Thank you for your script, just a question.
Can I use Clamav with Dovecot (Maildir format) on DirectAdmin?
 
Back
Top