Unpacking & Installing Apache, PHP, and SSL
From your home directory,
tar zxfv apache_1.3.9.tar.gz
Applying
the ApacheSSL Patches
The first step in applying the SSL patches to the Apache source distribution is to move the ApacheSSL distribution to the directory containing the Apache source files. From your home directory,
mv apache_1.3.9+ssl_1.37.tar.gz apache_1.3.9Next, unpack the patches.
cd apache_1.3.9Finally, apply the patches with the FixPatch command.
tar zxfv apache_1.3.9+ssl_1.37.tar.gz
./FixPatch /usr/local/sslAt the prompt asking if you want to apply the patches, answer "yes".
Do you want me to apply the fixed-up Apache-SSL patch for you? [n] yes
Initially
Configuring the Apache Source
Apache must have a valid makefile created before we can create the module for PHP, so the configure command must be called twice. This step creates the initial makefile. The only parameter that's important to pass to the configure command is the directory Apache should be installed in. The convention is to install it in a directory named apachessl, located in either the /opt or /usr/local directory depending on your personal preferences and the way your system is configured. I'm going to use /opt throughout the rest of these instructions - just replace it with whatever you choose.
In the Apache source directory,
./configure --prefix=/opt/apachessl
To unpack the PHP source distribution, return to your home directory and type
cd ~
tar zxfv php-3.0.12.tar.gz
To configure PHP for your system, change to the PHP source directory and run the configure command. If you want to include database support in PHP, run the configure command with the --help parameter to get a list of the arguments to pass to configure for all supported databases. Usually, it's just two hyphens , with, and the name of the database. For example, the argument to build in mySQL support is --with-mysql
From your home directory,
cd php-3.0.12
./configure --with-apache=../apache_1.3.9 --enable-track-vars
Compiling
and Installing PHP As A Module
From the PHP source directory, type
makeNote that you do not have to be root to install the PHP module, as you're just copying it to the Apache source directory.
make install
Re-configuring the Apache Source
Change to the Apache source directory and configure Apache for the second time, this time passing it any parameters that you normally would. Make sure you activate the PHP module.
From your home directory, type
cd apache_1.3.9
./configure --prefix=/opt/apachessl --enable-shared=max --enable-module=all --activate-module=src/modules/php3/libphp3.a --disable-module=auth_db
Compiling
and Installing Apache
From the Apache source directory, type
makeBecome root by using su or sudo, and type
make install