perl Makefile.PL APACHE_SRC=../apache-1.3.27/ SSL_BASE=/usr/local/ssl/ DO_HTTPD=1 \ USE_APACI=1 APACHE_PREFIX=/usr/local/apache EVERYTHING=1 \ APACI_ARGS='--enable-shared=ssl,--enable-shared=rewrite,--enable-shared=perl, \ --server-uid=nobody,--server-gid=nogroup,--enable-module=so,--enable-module=most'
I am going to explain some of the parameters used in the previous step:
DO_HTTPD - With this parameter we avoid that the scritp answer us if we want to generate the binary file in the src directory of the apache source tree (passed to the script with the APACHE_SRC parameter. If we don't define this parameter, the script will do an intelligent search to find an apache source tree. It will use the first valid tree that it would find). USE_APACI - This parameter allow us to pass parameters to the apache compilation. We need to put them with the APACI_ARGS parameter.
Finaly we have to compile and install mod_perl and apache:
make test make install
This process will compile an install the apache server. We don't need to go to the apache source tree to compile it, because this process is done via the mod_perl compilation and instalation. By this way we will have an apache installed in /usr/local/apache/ with the modules mod_ssl, mod_perl and mod_rewrite as DSO.