Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two PHP versions on one Windose/Apache machine

Status
Not open for further replies.

Itshim

Programmer
Apr 6, 2004
277
US
I needed to install an old version of PHP on my development machine, without disrupting my current version.

To do this, I moved all the PHP drivers and ini files out of my Windows and SYSTEM32 directories and placed them in my c:/php/ directory. I then created a new directory 'c:/php4/' and placed all the files for that version in the directory. For simplicities sake I created a new entry in my apache config file:

ScriptAlias /php4/ "C:/php4/"
AddType application/x-httpd-php4 .php4
Action application/x-httpd-php4 "/php4/php.exe"

Now if I want to run the script through PHP4 I use the extension .php4, and if I want to run it through php5 I use .php (I can live with this).

Looking at the phpinfo() page for both versions everything seems to be working, but I am left to wonder if I'm going to cause myself problems that I am unaware of.

Thanks,
Itshim
 
I would be very much suprised if the two did not interfere with one another. I would look for weirdness caused by problems with support libary revision incompatibilities.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thank you, I was afraid of that. I ran some pretty basic scripts just testing different things here and there and have not found any problems, but I think I am going to scrap this idea and try a different route. Although I'm not sure what that is at the moment.

Back to the drawing board...

Thanks again,
Itshim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top