Can php4 and php5 run simultaneously on apache2?
Allright, I have an unusual question.
I have a production server running apache2 and mod_php4. I have 2 production domains on this server. I also have one "beta" domain on this box where I am in the process of rebuilding one of the production domains.
However, I would like to build the new site on php5. Unfortunately, the old sites are tied to php4 and will not run on php5. That is part of the reason I'm redoing them (via the beta domain).
The question is, can I run php4 and php5 concurrently? My thought was to associate .php4 files to php4, and associate .php and .php5 files to php5. In other words, can I run mod_php4 and mod_php5 at the same time, and if so, can I instruct apache to associate interpreters based on file extension?
... if the server reads a .php4 file, it will use mod_php4 to interpret it, and if it reads a .php5 file it will use mod_php5?
I've googled, but I'm struggling finding an answer to this question.