Redhat 6.2 is so tricky,
i have successfully installed PHP4 with Apache...
the following is only my experience,
i didn't select PHP3 while i was installing RedHat 6.2
after installation of OS,
uncompressed php4 (my version is php-4.0.1pl2.tar.gz)
1.tar -zxvf php-4.0.1pl2.tar.gz
2.cd php-4.0.1pl2
3 ./configure --with-apxs=/usr/sbin/apxs --with-mysql
(notee: apxs is in /usr/bin/ as default, tricky)you may add your configuration
options
4.make
5.make install
OK...it seems you are sucessful, but if your reboot your system
you will get HTTPD failed to start...
after installation of PHP4, you need to do:
goto-->/etc/httpd/conf-->edit the file called-->httpd.conf
first goto Line#873 (or the line near that line), find one line
called (LoadModule lib/apache/libphp4.so
because Redhat's default Apache modules' directory is different
you need to find absolute pass of your Apache Module directory
and change lib/apache/lib.so instead of the correct path,
otherwise Apache can't load that module therefore HTTPd can't
load properly
and also don't forget to add a new in your httpd.conf file
AddType application/x-httpd-php .php
conclusion: installation in redhat 6.2 is a little tricky, but if you make sure
all the necessary directories (path), and change it to the correct path
you will get a work Apache with PHP
these include:
1.path of your apache modules
2.path of apxs (default, it should be in /usr/sbin/apxs)
all above is only my personal opinion,
i have dealt with that for so many times,