QUOTE (Kelly K @ Jan 30 2009, 10:00 PM)

We were looking for recomendations on how to best go about running both PHP 4 & 5 with apache 1.3x on RHEL 4.
Ive seenn a couple of posts about configuring Apache, ect, but wonder if there are there any inherent problems in doing this?
We have some legacy php 4 apps(that do not run properly under php5) that still have to run, but we have a new php app that requires php5.
We are also looking for a recomendation on how to compile and install php5 on this server without disturbing the existing php4 enviornment.
Thanks in advance for any help.
See my how-to here. Just ignore the ensim specific stuff. Should shed some light on what you're trying to do. PHP 4 is reaching end of life, version 5 has been out for years. Why not upgrade and use php4 for only sites really needing it? I don't understand why everyone is not using it these days. It's not hard to convert a script over for computability.
Anyways, see this post:
http://forums.theplanet.com/index.php?showtopic=89733Use my patched version of suPHP or you may not get the desired result, also suPHP should compile with apache v1. Everything can be found in my thread. Make sure you have the apache dev libs and headers. (httpd-devel) package.

Add this in the virtual host container in the httpd conf:
CODE
suPHP_Engine on
suPHP_UserGroup GROUPNAME USERNAME
AddHandler x-httpd-php4 .php4
suPHP_AddHandler x-httpd-php4
Replacing groupname and username with the php file owners.
Just build php5 from source and replace 4 with 5 in my howto. Have php 5 execute by .php5 files.
Questions? Feel free to ask