Entry
howto : Install mod_ssl+openssl+php4+apache+modperl+jserv
Mar 22nd, 2001 06:19
Rudolf Wallner, selfmade install script
#!/bin/sh
# !!! alle module in einem verzeichnis auspacken und script starten !!!
# !!! verzeichnisse bei anderen versionen evtl. anpassen !!
############################################################################
# Apache compile Script, um beliebig viele Module in den Apache zu
# integrieren. Basis hierfür sind die unten angegebenen Variablen zur
Steuer-
# ung des configure, make und make install des Apache Servers.
#
#
############################################################################
### Config Section
DIR="/root/make-apache"
OPENSSL="openssl-0.9.6"
MM="mm-1.1.3"
MODSSL="mod_ssl-2.8.1-1.3.19"
APACHE="apache_1.3.19"
PHP4="php-4.0.4pl1"
MODPERL="mod_perl-1.25"
MODPLSQL="mod_plsql"
JSERV="ApacheJServ-1.1.2"
###############################################
### Build and Install
###############################################
clear
echo ******************************************
echo ** Building Apache 1.3.19 for linux-elf **
echo ******************************************
# --------------------
# preinstall APACHE
# --------------------
cd ${APACHE}
./configure --prefix=${DIR}
cd ..
# -------------------
# PHP4
# -------------------
cd ${PHP4}
./configure --with-apache=../${APACHE} \
--enable-track-vars \
--enable-safe-mode \
--enable-debugger \
--enable-magic-quotes \
--enable-sysvsem \
--enable-sysvshm \
--with-ftp \
--with-oci8 \
--enable-sigchild \
--enable-sockets \
--enable-memory-limit \
--enable-calendar \
--enable-dbase \
--without-mysql \
--without-msql
make
make install
cd ..
# --------------------
# => OPENSSL
# --------------------
cd ${OPENSSL}
# make clean
./Configure --prefix=${DIR} linux-elf
make
make install
cd ..
# --------------------
# => MM
# --------------------
cd ${MM}
./configure --disable-shared
make
cd ..
# -------------------
# => MODSSL
# -------------------
cd ${MODSSL}
./configure --with-apache=../${APACHE}
cd ..
# ------------------
# => APACHE 1.3.19
# ------------------
cd ${APACHE}
SSL_BASE=../${OPENSSL} EAPI_MM=../${MM} ./configure \
--prefix=${DIR} --with-layout=Apache \
--enable-module=ssl --enable-shared=ssl \
--activate-module=src/modules/php4/libphp4.a \
--enable-module=all \
--enable-shared=max \
--enable-rule=EAPI \
--enable-rule=SHARED_CORE \
--disable-rule=WANTHSREGEX \
--with-perl=/usr/bin/perl
make
make certificate TYPE=dummy
make install
cd ..
# --------------------
# => JSERV
# --------------------
cd ${JSERV}
./configure \
--prefix=${DIR}/jserv \
--with-apxs=${DIR}/bin/apxs \
--with-jdk-home=/usr/local/jdk1.3 \
--with-JSDK=/root/archives/JSDK2.0/lib/jsdk.jar \
--disable-debugging \
--enable-EAPI
make
make install
cd ..
# --------------------
# => MODPERL
# --------------------
cd ${MODPERL}
perl Makefile.PL \
USE_APXS=1 \
WITH_APXS=${DIR}/bin/apxs \
EVERYTHING=1
make
make install
cd ..
# -------------------
# => END OF SCRIPT
# -------------------