Thread: [mod-security-users] Installation Error
Brought to you by:
victorhora,
zimmerletw
|
From: Chris M. <cj...@op...> - 2006-01-05 23:36:06
|
Hello, I am trying to install mod_security an I am getting the following error: [root@web apache1]# /hsphere/shared/apache/bin/apxs -cia mod_security.c gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm -DDEV_RANDOM=/dev/random -DMOD_SSL=208125 -DUSE_HSREGEX -DEAPI -DEAPI_MM -I/usr/kerberos/include -fpic -DSHARED_MODULE -I/hsphere/shared/apache/include -c mod_security.c gcc -shared -o mod_security.so mod_security.o [activating module `security' in /hsphere/local/config/httpd/httpd.conf] cp mod_security.so /hsphere/shared/apache/libexec/mod_security.so cp: cannot stat `mod_security.so': No such file or directory apxs:Break: Command failed with rc=1 My info is as follows: Linux web.hspherenet.com 2.4.21-37.ELsmp #1 SMP Wed Sep 28 14:05:46 EDT 2005 i686 i686 i386 GNU/Linux [root@web bin]# ./httpd -V Server version: Apache/1.3.34 (Unix) Server built: Nov 4 2005 19:46:33 Server's Module Magic Number: 19990320:18 Server compiled with.... -D EAPI -D EAPI_MM -D EAPI_MM_CORE_PATH="/hsphere/local/var/httpd/logs/httpd.mm" -D HAVE_MMAP -D HAVE_SHMGET -D USE_SHMGET_SCOREBOARD -D USE_MMAP_FILES -D HAVE_FCNTL_SERIALIZED_ACCEPT -D HAVE_SYSVSEM_SERIALIZED_ACCEPT -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D DYNAMIC_MODULE_LIMIT=64 -D HARD_SERVER_LIMIT=1024 -D HTTPD_ROOT="/hsphere/shared/apache" -D SUEXEC_BIN="/hsphere/shared/apache/bin/suexec" -D DEFAULT_PIDLOG="/hsphere/local/var/httpd/logs/httpd.pid" -D DEFAULT_SCOREBOARD="/hsphere/local/var/httpd/logs/httpd.scoreboard" -D DEFAULT_LOCKFILE="/hsphere/local/var/httpd/logs/httpd.lock" -D DEFAULT_ERRORLOG="/hsphere/local/var/httpd/logs/error_log" -D TYPES_CONFIG_FILE="/hsphere/local/config/httpd/mime.types" -D SERVER_CONFIG_FILE="/hsphere/local/config/httpd/httpd.conf" -D ACCESS_CONFIG_FILE="/hsphere/local/config/httpd/access.conf" -D RESOURCE_CONFIG_FILE="/hsphere/local/config/httpd/srm.conf" [root@web bin]# ./httpd -l Compiled-in modules: http_core.c mod_vhost_alias.c mod_env.c mod_define.c mod_log_config.c mod_mime_magic.c mod_mime.c mod_negotiation.c mod_status.c mod_info.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_speling.c mod_userdir.c mod_alias.c mod_rewrite.c mod_access.c mod_auth.c mod_auth_anon.c mod_auth_dbm.c mod_digest.c mod_proxy.c mod_cern_meta.c mod_expires.c mod_headers.c mod_usertrack.c mod_log_forensic.c mod_unique_id.c mod_so.c mod_setenvif.c mod_ssl.c mod_frontpage.c suexec: enabled; valid wrapper /hsphere/shared/apache/bin/suexec Using current Stable release of mod_security. This is for a web server and I cant figure out what is causing the install to fail. Any advice is greatly appreciated. Thanks, Chris |
|
From: Chris M. <cj...@op...> - 2006-01-07 15:10:11
|
Hello, I have the following installed on the box as per another person's suggestion, and it still wont work: gcc libgcc gcc-c++ glibc glibc-devel glibc-kernheaders glibc-common glibc-headers glibc-utils compat-gcc gcc-objc compat-gcc-c++ glibc-profile Am I still missing something? Any help is greatly appreciated. Thanks, Chris Mazza |
|
From: Ivan R. <iv...@we...> - 2006-01-07 13:16:47
|
Chris Mazza wrote: > Hello, > > I am trying to install mod_security an I am getting the following error: > > [root@web apache1]# /hsphere/shared/apache/bin/apxs -cia mod_security.c > gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm > -DDEV_RANDOM=/dev/random -DMOD_SSL=208125 -DUSE_HSREGEX -DEAPI -DEAPI_MM > -I/usr/kerberos/include -fpic -DSHARED_MODULE > -I/hsphere/shared/apache/include -c mod_security.c > gcc -shared -o mod_security.so mod_security.o > [activating module `security' in /hsphere/local/config/httpd/httpd.conf] > cp mod_security.so /hsphere/shared/apache/libexec/mod_security.so > cp: cannot stat `mod_security.so': No such file or directory > apxs:Break: Command failed with rc=1 I don't think it's a mod_security problem. You are probably unable to compile any third-party Apache module. Is there a compiler at all on that box? Does invoking apxs generate any files at all (in the same folder as the source code)? -- Ivan Ristic, Technical Director Thinking Stone, http://www.thinkingstone.com Tel: +44 20 8141 2161, Fax: +44 87 0762 3934 |
|
From: Andres B. <and...@ho...> - 2006-01-25 03:31:39
|
Chris Mazza <cjmazza <at> optonline.net> writes: > > Hello, > > I am trying to install mod_security an I am getting the following error: > > [root <at> web apache1]# /hsphere/shared/apache/bin/apxs -cia mod_security.c > gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -I/usr/include/gdbm > -DDEV_RANDOM=/dev/random -DMOD_SSL=208125 -DUSE_HSREGEX -DEAPI -DEAPI_MM > -I/usr/kerberos/include -fpic -DSHARED_MODULE > -I/hsphere/shared/apache/include -c mod_security.c > gcc -shared -o mod_security.so mod_security.o > [activating module `security' in /hsphere/local/config/httpd/httpd.conf] > cp mod_security.so /hsphere/shared/apache/libexec/mod_security.so > cp: cannot stat `mod_security.so': No such file or directory > apxs:Break: Command failed with rc=1 > > My info is as follows: > > Linux web.hspherenet.com 2.4.21-37.ELsmp #1 SMP Wed Sep 28 14:05:46 EDT 2005 > i686 i686 i386 GNU/Linux > > [root <at> web bin]# ./httpd -V > Server version: Apache/1.3.34 (Unix) > Server built: Nov 4 2005 19:46:33 > Server's Module Magic Number: 19990320:18 > Server compiled with.... > -D EAPI > -D EAPI_MM > -D EAPI_MM_CORE_PATH="/hsphere/local/var/httpd/logs/httpd.mm" > -D HAVE_MMAP > -D HAVE_SHMGET > -D USE_SHMGET_SCOREBOARD > -D USE_MMAP_FILES > -D HAVE_FCNTL_SERIALIZED_ACCEPT > -D HAVE_SYSVSEM_SERIALIZED_ACCEPT > -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT > -D DYNAMIC_MODULE_LIMIT=64 > -D HARD_SERVER_LIMIT=1024 > -D HTTPD_ROOT="/hsphere/shared/apache" > -D SUEXEC_BIN="/hsphere/shared/apache/bin/suexec" > -D DEFAULT_PIDLOG="/hsphere/local/var/httpd/logs/httpd.pid" > -D DEFAULT_SCOREBOARD="/hsphere/local/var/httpd/logs/httpd.scoreboard" > -D DEFAULT_LOCKFILE="/hsphere/local/var/httpd/logs/httpd.lock" > -D DEFAULT_ERRORLOG="/hsphere/local/var/httpd/logs/error_log" > -D TYPES_CONFIG_FILE="/hsphere/local/config/httpd/mime.types" > -D SERVER_CONFIG_FILE="/hsphere/local/config/httpd/httpd.conf" > -D ACCESS_CONFIG_FILE="/hsphere/local/config/httpd/access.conf" > -D RESOURCE_CONFIG_FILE="/hsphere/local/config/httpd/srm.conf" > > [root <at> web bin]# ./httpd -l > Compiled-in modules: > http_core.c > mod_vhost_alias.c > mod_env.c > mod_define.c > mod_log_config.c > mod_mime_magic.c > mod_mime.c > mod_negotiation.c > mod_status.c > mod_info.c > mod_include.c > mod_autoindex.c > mod_dir.c > mod_cgi.c > mod_asis.c > mod_imap.c > mod_actions.c > mod_speling.c > mod_userdir.c > mod_alias.c > mod_rewrite.c > mod_access.c > mod_auth.c > mod_auth_anon.c > mod_auth_dbm.c > mod_digest.c > mod_proxy.c > mod_cern_meta.c > mod_expires.c > mod_headers.c > mod_usertrack.c > mod_log_forensic.c > mod_unique_id.c > mod_so.c > mod_setenvif.c > mod_ssl.c > mod_frontpage.c > suexec: enabled; valid wrapper /hsphere/shared/apache/bin/suexec > > Using current Stable release of mod_security. This is for a web server and I > cant figure out what is causing the install to fail. > Any advice is greatly appreciated. > > Thanks, > Chris > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > Chris, I have a similar situation, but the weird part is that I was able to do it b4 with version 1.8.6. I have not changed my apache version and I am getting the following: gcc -DLINUX=22 -I/usr/include/gdbm -DMOD_SSL=208116 -DEAPI -O2 -march=i386 -mcpu=i686 -fpic -DSHARED_MODULE -I/usr/include/apache -c mod_security.c apxs:Break: Command failed with rc=16777215 I had the 1.8.6 module configured, but when I decided to upgrade it to the latest stable version (1.9.2) that is what I got. I've straced the process, but can't find anything that can point me to the right direction. Here is the output of my strace : e/apache", "-c", "mod_security.c"], [/* 23 vars */] <unfinished ...> [pid 11676] <... rt_sigaction resumed> {SIG_DFL}, 8) = 0 [pid 11678] <... execve resumed> ) = -1 ENOENT (No such file or directory) [pid 11676] wait4(11678, <unfinished ...> [pid 11678] execve("/usr/lib/courier-imap/bin/gcc", ["gcc", "-DLINUX=22", "-I/usr/include/gdbm", "-DMOD_SSL=208116", "-DEAPI", "-O2", "-march=i386", "-mcpu=i686", "-fpic", "-DSHARED_MODULE", "-I/usr/include/apache", "-c", "mod_security.c"], [/* 23 vars */]) = -1 ENOENT (No such file or directory) [pid 11678] execve("/usr/local/sbin/gcc", ["gcc", "-DLINUX=22", "-I/usr/include/gdbm", "-DMOD_SSL=208116", "-DEAPI", "-O2", "-march=i386", "-mcpu=i686", "-fpic", "-DSHARED_MODULE", "-I/usr/include/apache", "-c", "mod_security.c"], [/* 23 vars */]) = -1 ENOENT (No such file or directory) [pid 11678] execve("/usr/local/bin/gcc", ["gcc", "-DLINUX=22", "-I/usr/include/gdbm", "-DMOD_SSL=208116", "-DEAPI", "-O2", "-march=i386", "-mcpu=i686", "-fpic", "-DSHARED_MODULE", "-I/usr/include/apache", "-c", "mod_security.c"], [/* 23 vars */]) = -1 ENOENT (No such file or directory) [pid 11678] execve("/sbin/gcc", ["gcc", "-DLINUX=22", "-I/usr/include/gdbm", "-DMOD_SSL=208116", "-DEAPI", "-O2", "-march=i386", "-mcpu=i686", "-fpic", "-DSHARED_MODULE", "-I/usr/include/apache", "-c", "mod_security.c"], [/* 23 vars */]) = -1 ENOENT (No such file or directory) [pid 11678] execve("/bin/gcc", ["gcc", "-DLINUX=22", "-I/usr/include/gdbm", "-DMOD_SSL=208116", "-DEAPI", "-O2", "-march=i386", "-mcpu=i686", "-fpic", "-DSHARED_MODULE", "-I/usr/include/apache", "-c", "mod_security.c"], [/* 23 vars */]) = -1 ENOENT (No such file or directory) [pid 11678] execve("/usr/sbin/gcc", ["gcc", "-DLINUX=22", "-I/usr/include/gdbm", "-DMOD_SSL=208116", "-DEAPI", "-O2", "-march=i386", "-mcpu=i686", "-fpic", "-DSHARED_MODULE", "-I/usr/include/apache", "-c", "mod_security.c"], [/* 23 vars */]) = -1 ENOENT (No such file or directory) [pid 11678] execve("/usr/bin/gcc", ["gcc", "-DLINUX=22", "-I/usr/include/gdbm", "-DMOD_SSL=208116", "-DEAPI", "-O2", "-march=i386", "-mcpu=i686", "-fpic", "-DSHARED_MODULE", "-I/usr/include/apache", "-c", "mod_security.c"], [/* 23 vars */]) = -1 EACCES (Permission denied) [pid 11678] execve("/usr/X11R6/bin/gcc", ["gcc", "-DLINUX=22", "-I/usr/include/gdbm", "-DMOD_SSL=208116", "-DEAPI", "-O2", "-march=i386", "-mcpu=i686", "-fpic", "-DSHARED_MODULE", "-I/usr/include/apache", "-c", "mod_security.c"], [/* 23 vars */]) = -1 ENOENT (No such file or directory) [pid 11678] write(5, "\r\0\0\0", 4) = 4 [pid 11678] close(5) = 0 [pid 11678] _exit(-1) = ? <... wait4 resumed> [WIFEXITED(s) && WEXITSTATUS(s) == 255], 0, NULL) = 11678 --- SIGCHLD (Child exited) --- rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0 read(4, "\r\0\0\0", 4) = 4 close(4) = 0 write(2, "apxs:Break: Command failed with "..., 44apxs:Break: Command failed with rc=16777215 ) = 44 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 _exit(1) Any ideas? |
|
From: Ivan R. <iv...@we...> - 2006-01-25 10:57:07
|
> I've straced the process, but can't find anything that can point me to the right > direction. Here is the output of my strace : You don't appear to have gcc installed. What does "which gcc" say when you execute it? -- Ivan Ristic, Technical Director Thinking Stone, http://www.thinkingstone.com Tel: +44 20 8141 2161, Fax: +44 87 0762 3934 |