While there are many answers about running php5 and php4 together I haven't found answers that address my specific scenario.
I setup a new Ubuntu 12.4 server installed apache 2 and PHP 5.3. I have a need to run php 4.4.9 due to having to work with an old CMS system was written long ago, still maintained and encounters errors when run via php5.
So php5 is running as an apache module.
I want to run php4 and everything points to having to run that as cgi. I've seen the solutions where people had to change file extensions to .php4 and run them through cgi handler, but I don't have that as an option for either php4 or php5. Too many files and the codebase is shared.
First question, can I install php4 as a module as well? followup, what's best way to do that?
second question, can I have the handler that switches to php4 do so on a directory path instead of just *.php4? So I could tell it a list of directories or use multiple <Directory> blocks to have just php files in those directories run as php4.
thanks, - keith