471,830 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,830 software developers and data experts.

Short instruction: Install PHP (ISAPI) on Vista (IIS7)


I am one of those questionable people that started with Vista (Home
Not because I think it is a ready/steady OS, but partly out of
curiousity, and partly because I needed to work on an old project that
happens to run on IIS6/W2000/MSSQL7, but my W2000 machine couldn't
handle the size of the database in question anymore. :-(
My new Vista machine is 5 years younger and is a lot faster, so I
started to figure out how to use IIS7 on Vista.
(I could use only the database on my fast machine, and leave the PHP on
the slow W2000, but that would be too easy.)

For clearity: I do not recommend PHP5 on IIS7, use Apache when possible,
but if you have to use IIS7, here are a few pointers/thing I found.

Installing PHP5 on Vista/IIS7 is easy, once you find the right walkthrough.

General considerations:

1) I understand that the new FastCGI rocks (stable and fast), but I
picked the ISAPI because that is the setup of my client.
So if you need more speed, try FastCGI approach.

2) Don't try the installer found at php.net on Vista. (Actually, don't
ever use that thing because you won't be able to install extensions for
php, like mysql). Always use the zipped version and install by hand.

3) Put the php folder under the inetpub tree (but not in wwwroot). That
way the phpfolder will inherit all right permissions under Vista right away.


I am not going to repeat how to do this, but instead post the sites I
found good. I found many sites describing how to install PHP on IIS7,
but most aimed at beta releases, and many tutorials just didn't work.

Two walkthroughs that are good:


This one describes also installing mysql.



Mind that in this description step 4 says:
4) Install IIS7, making sure you install the ISAPI Extension component
(for PHP-ISAPI - which is what I use) or the CGI component (if you
prefer CGI)

I misinterpreted that line at first, but it means that WHEN installing
IIS7, you must specifically select (by hand) that ISAPI Extensions are
does describe this step with nice screenshots.
(You can't miss it, unless you happen to run a Dutch version of Vista as
I do, and must make guesses how they translated the english.)

ISAPI Extensions is set to 'off' by default, leading to confusings
errors later on when trying to add the handler that directs *.php
requests to the php5isapi.dll.
(Why can't M$ just say: "Enable ISAPI Extensions in IIS setup first" ??)

Well, I hope this saves somebody a headache. ;-)

Good luck!

Erwin Moller
PS: General Vista tip: If you use XP and are considering to 'upgrade' to
Vista, better wait untill SP1 comes out somewhere in 2008.
If you don't use a M$ OS, keep it like that.
Sep 14 '07 #1
0 5829

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by David Reynolds | last post: by
9 posts views Thread by Mark Rae | last post: by
reply views Thread by =?Utf-8?B?ZGF2ZQ==?= | last post: by
5 posts views Thread by =?Utf-8?B?bXVzb3NkZXY=?= | last post: by
6 posts views Thread by ma | last post: by
12 posts views Thread by Alan M Dunsmuir | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.