Tuesday, June 21, 2005

running PHP4 and PHP5 parallel

I have installed both versions on my development server and am running two instances of apache, one for each. Now this is running since last year and i have got no problem what so ever.

Now i have got this new Project, which is a relaunch of a website. The site, as you can imagine, is written in php4, and is pretty big. So they decided a step by step relaunch, beginning with its shop system.
Naturally i decided to write the new shop module in php5, because the data is too sensitive to handle it just in php4, no offense intendend.

Now we have got the Problem, the administrator of their server is not really a technical genius.. in other words, he is able to keep the machine going, but has abolutely no idea how to install php5 parallel to php4.

While my solution (2 instances of apache) works fine for me, i don't think it is the solution for the customer, so i looked into the net and found a real cool solution. (in a matter of seconds ;-)

This solutions works like this: They install both PHP versions (one, php5, from source) and configured apache that it will use php5 in the directory you like, by enabling mod_action.

Real cool! Here is the link

No comments: