On Sat, 22 Apr 2000, Forrest Aldrich wrote:
> I need to also install apache with php and mod_ssl.
Here's the shell script I use. It will require some editing for your site.
- Matt
#!/bin/sh
# source directories for mod_ssl, mod_php3, mod_perl, and apache
MOD_SSL=/usr/local/src/mod_ssl-2.6.2-1.3.12
MOD_PHP=/usr/local/src/php-3.0.16
MOD_PERL=/usr/local/src/modperl
APACHE=/usr/local/src/apache_1.3.12
# server.crt and server.key for mod_ssl
SERVER_CRT=/var/httpd/conf/ssl.crt/server.crt
SERVER_KEY=/var/httpd/conf/ssl.key/server.key
# directory to install apache into
PREFIX=/var/httpd
build_mod_ssl()
{
echo "Building mod_ssl ..."
cd $MOD_SSL
./configure --with-apache=$APACHE \
--with-crt=$SERVER_CRT \
--with-key=$SERVER_KEY
}
build_php3()
{
echo "Building php3 ..."
if [ -f $APACHE/src/Makefile ]; then
echo "Looks like apache has already been configured once. No need to
fake it."
else
echo "Faking apache configuration ..."
cd $APACHE
./configure --prefix=$PREFIX
fi
cd $MOD_PHP
./configure --with-mysql --with-apache=$APACHE --enable-track-vars
make
make install
}
build_apache()
{
echo "Building mod_perl and apache ..."
cd $MOD_PERL
perl Makefile.PL USE_APACI=1 \
EVERYTHING=1 \
APACHE_PREFIX=$PREFIX \
APACHE_SRC=$APACHE/src \
DO_HTTPD=1 \
APACI_ARGS=--enable-module=rewrite,--enable-suexec,--suexec-caller=nobody,--suexec-docroot=/var/www,--suexec-gidmin=100,--activate-module=src/modules/php3/libphp3.a,--enable-module=so,--enable-module=ssl
make
}
build_mod_ssl
build_php3
build_apache
# once everything's built, cd $MOD_PERL and make install