Mr Wells,

I have succesfully built them together following this procedure. I am
also including mysql and imap support in PHP. Be aware that many lines
that should be a 'one-liner' have been broken by my mailer. 

untar apache 1.3.12, mod_perl 1.24, php 4.0.3 and c-client (from uw)

# build imap client code
cd imap-2000.RELEASE-CANDIDATE.7/
make lnp

# make some symlinks required by PHP
ln -s /usr/src/downloaded/imap-2000.RELEASE-CANDIDATE.7/ lib
ln -s /usr/src/downloaded/imap-2000.RELEASE-CANDIDATE.7/ include

# prep Apache [PHP needs it]
cd ../apache_1.3.12
./configure

# prep PHP 
# To avoid conflicts with mod_perl's DBI, we need to tell 
# it to use the system's mysql client, usually found at /usr 
# you can find it with `locate mysql.h`
cd ../php-4.0.3
./configure --with-apache=../apache_1.3.12 --enable-track-vars
--with-imap=/usr/src/downloaded/imap-2000.RELEASE-CANDIDATE.7/
--with-mysql=/usr
make ; make install

# prep mod_perl según INSTALL.apaci
cd ../mod_perl-1.24
perl Makefile.PL EVERYTHING=1 PERL_TRACE=1
APACHE_SRC=../apache_1.3.12/src DO_HTTPD=1 PREP_HTTPD PERL_MARK_WHERE=1
USE_APACI=1
make
make install

# with this conf, the resulting apache is a STATICALLY LINKED APACHE
cd ../apache_1.3.12
./configure --prefix=/usr/local/apache.heavy
--activate-module=src/modules/perl/libperl.a --with-layout=Apache
--enable-module=all --activate-module=src/modules/php4/libphp4.a
make 
make install

# to make it shared, use --enable-shared=max ....

Reply via email to