First, uninstall the Apache and PHP RPMs (rpm -e packagename).
Then follow the general directions
here
Installing both is following the general form of "unpack tarball; cd to directory; configure; make; make install".
It's how you handle the "configure" step that makes the difference.
If you're used to the RedHat layout of Apache configuration files, run configure with the options:
./configure --enable-mods-shared=all --enable-ssl --enable-deflate --enable-layout=RedHat --enable-proxy
this will compile into Apache most of its functionality in modules (which can be turned off if you don't need them) and turns on SSL, deflate and proxy support. The "enable-layout" option will instruct Apache to install files where you're used to their being.
What I do to make life easier is to create a bash script which runs configure with the command-line options:
#! /bin/bash
./configure --enable-mods-shared=all --enable-ssl --enable-deflate --enable-layout=RedHat --enable-proxy | tee configuration_last_run.txt
The last part uses the "tee" command (see man tee) to send the output of the configure script both to a file and to the console. That way you have something to examine should you run into problems.
Running PHP's configure script requires that you let it know what function families you wish to activate. I do a lot with my PHP installation, so my configure-invoking bash script looks like:
#! /bin/bash
./configure --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc --with-openssl --enable-bcmath --with-dom --enable-ftp --with-mysql=/usr
--with-zlib --with-mcrypt=/usr --with-curl --enable-calendar --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-gd --ena
ble-gd-native-ttf --with-mssql=/usr/local --enable-exif --with-ldap --with-gmp --with-imap=/usr/local/imap-2002e --with-pdflib=/usr/local/lib
/PDFlib/bind/c --enable-sockets | tee configuration_last_run.txt
I'm also running PHP 5.0RC2. The same configure parameters should work with both PHP 4.3.6 and PHP 5.0RC2.
Want the best answers?
Ask the best questions!
TANSTAAFL!!