1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

mod_security install error

Discussion in 'Plesk for Linux - 8.x and Older' started by criticman, Dec 18, 2005.

  1. criticman

    criticman Guest

    0
     
    I have downloaded mod_security, uncompressed it. I have downloaded httpd-devel via yum and ART's repository.

    I located apsx...

    Ran the command to compile that I have seen two places, gotroot and eth0.us...and here is the error:
     
  2. mlovick

    mlovick Guest

    0
     
  3. criticman

    criticman Guest

    0
     
    Yes. In addition to that page having spelling issues on code and missing special characters at time :);-_ etc), none of the options there worked.

    I have tried from there, modsecurity.org, and various other sites from Google searches, as well as eth0.us, as I mentioned in my original post
     
  4. mlovick

    mlovick Guest

    0
     
    I am not sure if this will help. But in the error it mentions MD5. Is it possible that the APXS script requires the perl module md5?

    Try installing that:
    perl -MCPAN -e 'shell'
    perl> install MD5

    I hope it works.
     
  5. criticman

    criticman Guest

    0
     
    # perl -MCPAN -e 'shell'
    Can't locate CPAN.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .).
    BEGIN failed--compilation aborted.
     
  6. mlovick

    mlovick Guest

    0
     
    Yikes - no CPAN!

    That was a minimal install :)

    You could locate an install the Cpan RPM

    Or just download MD5

    http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/MD5-2.03.tar.gz

    uncompress the file and go into the folder created

    then:

    perl Makefile.PL
    make
    make install

    This may not solve your apxs problem, but I hope it does.
     
  7. criticman

    criticman Guest

    0
     
    Thanks, that was not it but good to have that, heh.

    going by gotroot....

    edited mod_security.c as stated
    +++++++++++++++++++++++++++
    #include <stdarg.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/stat.h>
    #include <apr-0/apr_md5.h>
    #include <apr-0/apr_user.h>

    +++++++++++++++++++++++++++

    Did the symlinks.

    Made sure I have the latest httpd-devel using YUM.

    and here is what happens.
     
  8. mlovick

    mlovick Guest

    0
     
    OK - I am officially an idiot!

    Which distro are you on?

    I believe you need to install APR.

    e.g. with centos the RPM is apr-0.9.4-24.5.i386.rpm
    apr-devel-0.9.4-24.5.i386.rpm

    There is also, apr-util-devel-0.9.4-21.i386.rpm apr-util-0.9.4-21.i386.rpm

    I hope it helps.
     
  9. paulwilson159

    paulwilson159 Guest

    0
     
    Can this be installed on a RedHat 9 distro.?

    I have the 0.9.7 rpms


    Paul
     
  10. criticman

    criticman Guest

    0
     
    I am running RH9. And all attempts to find up to date RPMs seem to fail on what you mentioned above.
     
  11. mlovick

    mlovick Guest

    0
     
  12. criticman

    criticman Guest

    0
     
    By all means, tell that to GoDaddy.

    My RackSpace server for one of my clients is Fedora Core 4...much better.
     
  13. mlovick

    mlovick Guest

    0
     
    There is nothing wrong with RH9 - the only problem is that it is not being supported by RH anymore. So in effect any RPM installed now would prolly be pretty much out of date.

    The most concerning thing would be the security issues - using RH9 now involves compiling the kernel etc.. manually to keep it up to date, not a difficult task - but very boring and can be tricky doing it remotely unless you have KVMoIP

    Good luck with that :)
     
  14. paulwilson159

    paulwilson159 Guest

    0
     
    I installed the apr rpms - the mod_security appeared to install OK, but then when I try to load the module, it gives me the error:

    Cannot load /usr/lib/httpd/modules/mod_security.so into server: /usr/lib/libapr-0.so.0: symbol sys_siglist, version GLIBC_2.3.3 not defined in file libc.so.6 with link time reference

    Commenting out the load module parameter in the httpd.conf allows me to get the server up and running again.

    Anyone know if glibc-2.3.3 is out in rpm format for redhat 9? I could try compiling from a src.rpm but it is getting a bit risky..

    Oh well, Centos build from now on......
     
  15. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
  16. criticman

    criticman Guest

    0
     
    So, new troubles

    So, I have moved away from GoDaddy and am on a new server...

    Fedora Core 3
    Plesk 7.5.4

    Trying to install mod_security.

    I installed httpd_devel successfully from ART using yum. I downloaded the latest release of mod_security, untar, went into apache2 directory, ran the install command, got this error:
    Code:
    apache2]# /usr/sbin/apxs -cia mod_security.c
    /bin/sh /usr/lib/apr/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apr-0 -I/usr/include/httpd  -c -o mod_security.lo mod_security.c && touch mod_security.slo
    /usr/lib/apr/build/libtool: line 1092: gcc: command not found
    apxs:Error: Command failed with rc=65536
    .
     
  17. criticman

    criticman Guest

    0
     
    Alright, as per the instructions here: http://www.gotroot.com/tiki-index.php?page=Setting up mod_security

    I did
    Code:
    Edit modsecurity.c, and add these two lines to the list of #include lines:
    
    #include <apr-0/apr_md5.h>
    #include <apr-0/apr_user.h>
    
    Then, add these symlinks:
    
    ln -s /usr/lib/libaprutil-0.so.0 /usr/lib/libaprutil-0.so
    ln -s /usr/lib/libapr-0.so.0 /usr/lib/libapr-0.so
    
    And then compile like this:
    
    apxs -cai -lapr-0 -laprutil-0 mod_security.c

    And I got it!!!!
    Code:
    yum install gcc
    All good!
     
  18. trec

    trec New Pleskian

    24
    90%
    Joined:
    Nov 6, 2003
    Messages:
    19
    Likes Received:
    0
    I also have problems installing mod_security on a 3ES box:

    I already did:
    any clue on the problem?
     
  19. atomicturtle

    atomicturtle Golden Pleskian

    29
     
    Joined:
    Nov 20, 2002
    Messages:
    2,110
    Likes Received:
    7
    Location:
    Washington, DC
  20. paulwilson159

    paulwilson159 Guest

    0
     
    Hello ART

    Yes, I know that you do the atomic security package. We are about to install it on one of our servers.

    However the one platform that we are having trouble with cannot upgrade the kernrel, due to RAID driver issues.

    Do you have any assistance for that scenario?
     
Loading...