Well,
I have read I don't know how many countless posts on people trying to
accomplish compiling modperl modssl and modphp. And after reading bits here
and there, I have wrote 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.
If you want to download the exact specific versions of the Modules and
http://ThinkShells.com/howtocompileapache.php
--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
cd apache_1.3.22
./configure --prefix=/usr/local/apache
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
cd ../mod_ssl-2.8.5-1.3.22
./configure --with-apache=../apache_1.3.22 --with-ssl=../openssl-0.9.6b
cd ../php-4.0.6
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.22 --e
nable-track-vars
make
make install
cd ../modperl # On one server this worked the other I received an error when trying to # then proceed back to modperl cd ../apache_1.3.22 Verify all modules compiled in correctly by issuing the following command: The results should look something like this: /usr/local/apache/bin/httpd -l Compiled-in modules: You can see the last three modules are ssl, perl, and php! Congradulations, --
perl Makefile.PL USE_APACI=1 EVERYTHING=1 SSL_BASE=/usr/local/ssl
APACI_ARGS=--enable-module=rewrite,--enable-module=ssl,--activate-module=sr
/modules/php4/libphp4.a
make
make install
compile the modphp. If you get this error do the following
* cd ../php-4.0.6
* make install
cd ../modperl
make
make install
make
make install
/usr/local/apache/bin/httpd -l
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 now have SSL, Perl, and PHP modules compiled in Apache ready for a full
E-Commerce website!
ThinkShells.com
Internet Service with a personal touch
http://ThinkShells.com