few comments on an apache setup with current/solaris9 (php part)
- oci8 support
checking for ncurses support... no
checking for Oracle-OCI8 support... yes
checking Oracle Install-Dir... /exlibris/app/oracle/product/817
checking Oracle version... configure: error: Oracle-OCI8 needed libraries not found
+ /home/www-test/local/bin/make --no-print-directory
make: *** No targets specified and no makefile found. Stop.
+ /home/www-test/local/lib/openpkg/shtool subst -e 's;^\(EXTENSION_DIR = \)\(/home/www-test/local\);\1/home/www-test/loc
al/RPM/TMP/apache-1.3.29-root\2;' -e 's;^\(PEAR_INSTALLDIR = \)\(/home/www-test/local\);\1/home/www-test/local/RPM/TMP/a
pache-1.3.29-root\2;' config_vars.mk
shtool:subst:Warning: file `config_vars.mk' not found or not a regular file
+ /home/www-test/local/bin/make --no-print-directory install INSTALL_ROOT=/home/www-test/local/RPM/TMP/apache-1.3.29-roo
t
make: *** No rule to make target `install'. Stop.
+ exit 2
error: Bad exit status from /home/www-test/local/RPM/TMP/rpm-tmp.30309 (%build)
RPM build errors:
Bad exit status from /home/www-test/local/RPM/TMP/rpm-tmp.30309 (%build)
config.log
1279 configure:55957: checking for ncurses support 1280 configure:56923: checking for Oracle-OCI8 support 1281 configure:56968: checking Oracle Install-Dir 1282 configure:57263: checking Oracle version EOF
and php*.src.rpm compiles fine with oci8
$ rpm -qi php|grep oci
php::with_oci7 = no
php::with_oci8 = yes(oracle-*.rpm is installed)
- why gdbm in apache, by default ? (with_gdbm_ndbm)
- 2 extra security mods: patch to add mod_security & mod_dosevasive
- MTA/apache: one forgotten
215 %if "%{with_mod_php}" == "yes"
216 BuildPreReq: gcc, sed, flex, bison
217 PreReq: MTA- core on browser access with mod_dav
[Thu Feb 12 14:23:55 2004] [notice] child pid 29154 exit signal Segmentation Fault (11), possible coredump in /home/www-
test/local/var/apache
[Thu Feb 12 14:24:09 2004] [notice] child pid 29155 exit signal Segmentation Fault (11), possible coredump in /home/www-
test/local/var/apache
gdb
Core was generated by `/home/www-test/local/sbin/apache'. Program terminated with signal 11, Segmentation fault. Cannot access memory at address 0xff3f73a4 #0 0x002a2794 in dav_add_response () (gdb) where #0 0x002a2794 in dav_add_response () Cannot access memory at address 0xffbff7cc (gdb)
ok with mod_dav disabled
Regards
Julien
--- local/RPM/SRC/apache/apache.spec.orig Thu Feb 12 11:19:57 2004 +++ local/RPM/SRC/apache/apache.spec Thu Feb 12 11:21:24 2004 @@ -50,6 +50,8 @@ %define V_mod_roaming 1.0.2 %define V_mod_relocate 1.0 %define V_suphp 0.5 +%define V_mod_security 1.7.4 +%define V_mod_dosevasive 1.8 # package information Name: apache @@ -92,6 +94,8 @@ %option with_mod_access_referer no %option with_mod_roaming no %option with_mod_relocate no +%option with_mod_security yes +%option with_mod_dosevasive yes # package options (optional PHP4 specific settings; requires "with_mod_php") %option with_mod_php_calendar no @@ -185,6 +189,8 @@ Source14: http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap.tar.gz Source15: http://www.suphp.org/download/suphp-%{V_suphp}.tar.gz Source16: http://osdn.dl.sourceforge.net/sourceforge/modauthmysql/mod_auth_mysql.tgz +Source17: http://www.modsecurity.org/download/mod_security-1.7.4.tar.gz +Source18: http://www.nuclearelephant.com/projects/dosevasive/mod_dosevasive.1.8.tar.gz Source20: apache.conf Source21: apache.base Source22: apache.vhost @@ -423,6 +429,16 @@ url = http://www.suphp.org/Download.html regex = suphp-(__VER__).tar.gz } + prog apache:mod_security = { + version = %{V_mod_security} + url = http://www.modsecurity.org/download/ + regex = mod_security-(__VER__).tar.gz + } + prog apache:mod_dosevasive = { + version = %{V_mod_dosevasive} + url = http://www.nuclearelephant.com/projects/dosevasive/ + regex = mod_dosevasive.(__VER__).tar.gz + } %prep # unpack Apache distribution @@ -482,6 +498,12 @@ %if "%{with_mod_auth_mysql}" == "yes" %setup -q -T -D -a 16 %endif +%if "%{with_mod_security}" == "yes" + %setup -q -T -D -a 17 +%endif +%if "%{with_mod_dosevasive}" == "yes" + %setup -q -T -D -a 18 +%endif %build # prepare environment @@ -873,6 +895,20 @@ ) || exit $? %endif + # optionally prepare mod_security +%if "%{with_mod_security}" == "yes" + ( cd mod_security-%{V_mod_security}/apache1 + cp mod_security.c ../../apache_%{V_apache}/src/modules/extra/ + ) || exit $? +%endif + + # optionally prepare mod_dosevasive +%if "%{with_mod_dosevasive}" == "yes" + ( cd mod_dosevasive + cp mod_dosevasive.c ../apache_%{V_apache}/src/modules/extra/ + ) || exit $? +%endif + # configure Apache ( cd apache_%{V_apache} %if "%{with_debug}" == "yes" @@ -1008,6 +1044,12 @@ %if "%{with_suphp}" == "yes" --activate-module=src/modules/extra/mod_suphp.o \ %endif +%if "%{with_mod_security}" == "yes" + --activate-module=src/modules/extra/mod_security.o \ +%endif +%if "%{with_mod_dosevasive}" == "yes" + --activate-module=src/modules/extra/mod_dosevasive.o \ +%endif --enable-module=so %{l_make} %{l_mflags -O} build-quiet ) || exit $?
