OK.
I got the latest apache mod_ssl mod_php mod_perl to compile and run cleanly.
Here comes my problem.
php scripts don't work.
So I tried to add a Load Module directive as per the php instructions:
/etc/rc.d/init.d/httpd start
Starting httpd: Syntax error on line 208 of /etc/httpd/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a
module not included in the server configuration
[FAILED]
I added the AddTypes directove and the AddModule httpd.conf
directives with no luck, and when I run httpd without the Loadmodule
everything works except php *I haven't tried perl either*.
SO.
What's up here. It looks like two things are happening:
1. I don't need to add the LoadModule directive unless I am using an
APACI type of installation.
2. Something else is wrong in the compilation stuff.
Am I correct, or else what gives here?
Blair
Here is a log of my compilation script (bash):
#!/bin/sh
if [ ! -f ./compile_env.sh ]; then
echo could not find environment variable initialisation file compile_env.sh
exit 1
fi
. ./compile_env.sh
cd $APACHESRC
rm -rf $APACHE $MODSSL $RSAREFDIR $MODPERL $OPENSSL $PHP
tar -zxvf $APACHE.tar.gz
tar -zxvf $MODSSL.tar.gz
mkdir $RSAREFDIR;cd $RSAREFDIR;tar -zxvf ../$RSAREFTAR
cd ..
tar -zxvf $MODPERL.tar.gz
tar -xvf $OPENSSL.tar
tar -zxvf $PHP.tar.gz
chown -R root ./*
chgrp -R root ./*
cd $RSAREFDIR
cp -rp install/unix local
cd local
make
mv rsaref.a librsaref.a
cd ../..
cd $OPENSSL
sh config \
-L$APACHESRC/$RSAREFDIR/local/rsaref
make
make test
cd ..
cd $MODSSL
./configure \
"--with-apache=../$APACHE" \
"--with-ssl=../$OPENSSL" \
"--with-rsa=../$RSAREFDIR/local" \
"--prefix=$APACHESRC" \
"$@"
cd ..
cd $MODPERL
perl Makefile.PL \
EVERYTHING=1 \
APACHE_PREFIX=$APACHESRC \
APACHE_SRC=../$APACHE/src \
USE_APACI=1 \
PREP_HTTPD=1 \
DO_HTTPD=1 \
APACI_ARGS=--enable-module=ssl,--enable-module=rewrite
make
make install
cd ..
# pre-configure Apache for PHP3's configure step
cd $APACHE
./configure \
--prefix=$APACHESRC/$APACHE
cd ..
#configure and install mod_php
cd $PHP
./configure \
"--with-apache=$APACHESRC/$APACHE" \
"--with-ssl=../$OPENSSL" \
"--enable-memory-limit=yes" \
"--enable-debug=no" \
"--with-mck=$CYBERCASH" \
"--with-imap"
gmake
gmake install
cd ..
cd $APACHE
CC="cc" \
SSL_BASE="../$OPENSSL" \
RSAREF_BASE="../$RSAREFDIR/local/" \
./configure \
"--with-layout=$LAYOUT" \
"--enable-module=ssl" \
"--activate-module=src/modules/perl/libperl.a" \
"--activate-module=src/modules/php3/libphp3.a" \
"--enable-module=php3" \
"--enable-module=rewrite" \
"$@"
make
cd ..
Computer Engineering Inc.
http://www.compeng.net
Phone: 780 499 5687 (9 - 5 MST)
Fax: 780 435 0693 (24 Hours)
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]