./configure --with-mysql='/usr' #### #!/bin/sh # # build_apache.sh # # -------install Apache using DSOs-------- # # first, untar apache, mod_perl, and php in a common dir. # my tree looks like this: # /tmp/apache # | # ./apache_1.3.14/ # ./apache_1.3.14.tar.gz # ./build_apache.sh # ./mod_perl-1.24/ # ./mod_perl-1.24.tar.gz # ./php-4.0.3pl1/ # ./php-4.0.3pl1.tar.gz ########################################################### # prebuild apache for php cd apache_1.3.14 rm -rf config.cache make clean ./configure --prefix='/usr/local/apache' cd .. ########################################################### # build php cd php-4.0.3pl1 rm -rf config.cache make clean ./configure --with-mysql='/usr' --enable-track-vars \ --with-apache='../apache_1.3.14' # mysql header files in /usr/include/mysql # mysql library files in /usr/lib/mysql # (this is the default from an rpm install of mysql) make make install cd .. ########################################################### # build mod_perl cd mod_perl-1.24_01 rm -rf config.cache make clean perl Makefile.PL \ APACHE_PREFIX='/usr/local/apache' \ APACHE_SRC='../apache_1.3.14' \ NO_HTTPD=1 \ USE_APACI=1 \ PREP_HTTPD=1 \ EVERYTHING=1 make make install cd .. ########################################################### # build apache cd apache_1.3.14 rm -rf config.cache make clean ./configure --prefix='/usr/local/apache' \ --enable-module=rewrite \ --enable-module=proxy \ --activate-module='src/modules/perl/libperl.a' \ --activate-module='src/modules/php4/libphp4.a' \ --enable-shared=perl make make install cd .. ########################################################### # fin