I think it's a bug that has to be with hardened server. I've been using apache for several years, since last with apache2. This is the first time i've installed it in a hardened server, and i've found i've not got cgi support with my apache2. The problem is that there is not mod_cgi.so and similar in /usr/lib/apache2/modules while in the rest of my servers they are. I've emerged apache2 with this USE's net-www/apache-2.0.55 +apache2 -debug -doc -ldap -mpm-leader -mpm-peruser -mpm-prefork -mpm-threadpool -mpm-worker +no-suexec (-selinux) +ssl -static-modules +threads 0 kB But also i've tried with -no-suexec and -threads but still nothing My emerge --info is: [server] [15:56] [/root] emerge --info Portage 2.0.53 (hardened/x86/2.6, gcc-3.3.6, glibc-2.3.5-r2, 2.6.11-hardened-r15 i686) ================================================================= System uname: 2.6.11-hardened-r15 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -s" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer -s" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg digest distlocks sfperms" GENTOO_MIRRORS=" http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.gnukorea.org http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://www.gigaload.org/gentoo.org/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.dale.ro/pub/mirrors/ftp.ibiblio.org/pub/Linux/distributions/gentoo " LINGUAS="es" MAKEOPTS="-j3 -s" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 acpi apache2 bash-completion bashlogger bzip2 caps commercial crypt curl elf ethereal expat extensions fpx ftp gd gdbm gpm graphviz hardened idn imap innodb javascript jbig jikes jpeg justify kerberos lcms libwww lm_sensors maildir mbox mhash mime mmx mpeg mysql ncurses nls no-suexec notlsbeforeauth offensive opengl pam pcre perl php pic png posix postgres python readline sasl sftplogging slang smux snmp ssl static sysfs tcpd test threads tiff truetype unicode usb userlocales vim-pager xml2 zlib linguas_es userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
IF you need any other otuput or whatever just tell me
what are the contents of /etc/apache2/apache2-builtin-mods?
Ok i didn't know how the minus (-) went to /etc/apache2/apache2-bultin-mods to mod_cgi and mod_cgid But i've recompiled and the modules just appeared as expected. Thanks [15:10] [/root] cat /etc/apache2/apache2-builtin-mods # $Header$ # # This file will be installed into /etc/apache2 when you first emerge # Apache2. If/when you upgrade, it will be consulted for your options, # thus preserving your previous configuration. The default configuration # in files/ is used if the one in /etc/apache2 isn't available. # # To compile a module statically into the apache binary, simply put # static beside it. To compile a module as a DSO, put shared beside # it. To disable a module, simply put a - as the first character on # the line. # # Examples: # mod_access shared ( this would build a DSO ) # mod_actions static ( this would get compiled statically ) # - mod_alias shared ( this module would not be built at all ) # # Please be aware that if you _do_ customize these then you'll need # to manually adjust your httpd.conf file, tweaking the LoadModule # lines accordingly or else your server will fail to start; you've # been warned! (woodchip@gentoo.org Nov 21 2002) - mod_example shared mod_access shared mod_auth shared mod_auth_dbm shared mod_auth_anon shared mod_auth_digest shared mod_alias shared mod_file-cache shared mod_echo shared mod_charset-lite shared mod_cache shared mod_disk-cache shared mod_mem-cache shared mod_ext-filter shared mod_case_filter shared mod_case-filter-in shared mod_deflate shared mod_mime-magic shared mod_cern-meta shared mod_expires shared mod_headers shared mod_usertrack shared mod_unique-id shared mod_proxy shared mod_proxy-connect shared mod_proxy-ftp shared mod_proxy-http shared - mod_optional-hook-export shared - mod_optional-hook-import shared - mod_optional-fn-import shared - mod_optional-fn-export shared - mod_bucketeer shared mod_info shared mod_include shared - mod_cgi shared - mod_cgid shared mod_dav shared mod_dav-fs shared mod_vhost-alias shared mod_speling shared mod_rewrite shared mod_log_config shared mod_logio shared mod_env shared mod_setenvif shared mod_mime shared mod_status shared mod_autoindex shared mod_asis shared mod_negotiation shared mod_dir shared mod_imap shared mod_actions shared mod_userdir shared mod_so static