Well, I have read I don't know how many countless posts on people trying to accomplish this task. And after reading bits here and there, I have written just a small routine for those of you who are having trouble. This was compiled on a Sun Solaris 2.8 box with Sun Forte's compiler, but I imagine it should work on just about all platforms.
Here are the versions that I used for this project.
- apache_1.3.22.tar.gz
- mod_ssl-2.8.5-1.3.22.tar.gz
- openssl-0.9.6b.tar.gz
- php-4.0.6.tar.gz
- modperl_20011121051928.tar.gz
Compile Order
tar xf apache_1.3.22.tar
tar xf mod_ssl-2.8.5-1.3.22.tar
tar xf modperl_20011121051928.tar
tar xf openssl-0.9.6b.tar
tar xf php-4.0.6.tar
Apache
cd apache_1.3.22
./configure --prefix=/usr/local/apache
OpenSSL
cd ../openssl-0.9.6b
# (Please note 64bit support did not work when
trying to compile as a static module in Apache,
so compile this in 32bit)
./config
make
make install
Mod_SSL
cd ../mod_ssl-2.8.5-1.3.22
./configure --with-apache=../apache_1.3.22 --with-ssl=../openssl-0.9.6b
PHP
cd ../php-4.0.6
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.22 --enable-track-vars
make
make install
Perl
cd ../modperl
perl Makefile.PL USE_APACI=1 EVERYTHING=1 SSL_BASE=/usr/local/ssl APACI_ARGS=--enable-module=rewrite,--enable-module=ssl,--activate-module=src/modules/php4/libphp4.a
make
make install
# On one server this worked while on the other I received
an error when trying to compile the modphp.
If you get this error do the following
cd ../php-4.0.6
# For some reason on one of our servers we had to re-install PHP a second time
make install
# then proceed back to modperl
cd ../modperl
make
make install
cd ../apache_1.3.22
make
make install
Verify all modules compiled in correctly by issuing the following command: /usr/local/apache/bin/httpd -l
The results should look something like this:
/usr/local/apache/bin/httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_access.c
mod_auth.c
mod_setenvif.c
mod_ssl.c
mod_perl.c
mod_php4.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
You can see the last three modules are ssl, perl, and php! Congratulations, you now have SSL, Perl, and PHP modules compiled in Apache ready for a full E-Commerce website!
Provided by Think Shells Internet Services