Installing Apache with mod_perl and mod_ssl and php4


I have found that installing Apache 1.3 with mod_perl, mod_ssl and php4 is not an easy task.
Here I present an example of how you can accomplish this.
Sources:
modssl# ./configure --with-apache=<apache_src_dir> --with-eapi-only

apache# ./configure --prefix=/usr/local/apache --enable-rule=EAPI --enable-module=so \
	--enable-shared=auth_db --enable-shared=digest --enable-module=log_agent --enable-shared=usertrack \
	--enable-shared=auth_dbm --enable-shared=cern_meta --enable-module=expires --enable-module=mime_magic \
	--enable-shared=unique_id --enable-module=vhost_alias --em able-shared=auth_anon \
	--enable-shared=auth_digest --enable-module=headers --enable-module=info --enable-module=log_referer \
	-- enable-module=rewrite --enable-shared=speling --server-uid=httpd --server-gid=httpd --enable-suexec \
	--suexec-caller=httpd --suexec-docroot=/home
apache# make
apache# make install
apache# ln -s /usr/local/apache/bin/* /usr/local/bin

mod_perl# perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/local/bin/apxs EVERYTHING=1 PERL_USELARGEFILES=0
mod_perl# make
mod_perl# make install

mod_ssl# ./configure --with-apxs=/usr/local/bin/apxs --with-ssl=>openssl_src_path< --prefix=/usr/local/mod_ssl
mod_ssl# make && make install

Add "LoadModule ssl_module libexec/libssl.so" to /usr/local/apache/conf/httpd.conf

php# ./configure --prefix=/usr/local/php --with-apxs=/usr/local/bin/apxs --enable-ftp \
	--with-pgsql=shared,/usr/local/pgsql --enable-sockets --enable-memory-limit \
	--with-openssl=/usr/local/openssl --enable-calendar
php# make
php# make install

Add "AddType application/x-httpd-php .php" to /usr/local/apache/conf/httpd.conf

Author Per-Olof Pettersson