IIS5 + PHP4 => IIS5 + PHP4+PHP5

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
OneSeventeen
Forum Newbie
Posts: 2
Joined: Fri Jul 23, 2004 3:42 pm
Location: Albuquerque, NM

IIS5 + PHP4 => IIS5 + PHP4+PHP5

Post by OneSeventeen »

At work we have PHP4 installed on our web server running IIS5.
Now I am trying to convince IT to upgrade to PHP5, and they are a bit scared, so I am thinking of having them install PHP5 next to PHP4, so we can run .php4 scripts with PHP4 but parse .php files with PHP5.

I have been playing with PHP5 at home with Apache, and on my mobile web server with MyWebserver, and it has been working flawlessly in both situations, so I'm really hoping to script in PHP5 at work as well.

Are there any good guides on how to install PHP5 alongside PHP4? I just want to make this as quick and painless for IT as possible, and as of now, I'm the resident PHP guru (and I'm not that much of a guru!), so if I don't know the ins and outs of doing this, they probably won't. :(

Any tips?
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

*** THIS IS UNTESTED ***

i think you could. but let me say first, ive never tested it.
use the zip (not installer!) to install php5...
copy php5ts.dll, php5isapi.dll and all the extensions (dont forget php_mysql.dll) you want into your system32 dir
i think you'll be ok if you let php5 use the old php.ini file so, dont overwrite the old one!

1) open up your IIS Manager, and right click you website and click properties. (this may have been done on your "Websites" Folder, instead of on each individual website)
2) on the Home Directory tab, click Configuration.
3) on the "Mappings" tab (its default) find your .php extension and change it to .php4
4) click "Add"
5) in the "Executable" box put in the path to your system32 folder ex: "C:\windows\system32", and put in your extension ".php"
6) restart iis, from command prompt "net stop iisadmin" then "net start w3svc"
Post Reply