473,586 Members | 2,491 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5971

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: David Reynolds | last post by:
Is it possible to create an ISAPI dll using VB.Net?
by: Brad | last post by:
In a Vista/IIS7 asp.net app, a coded crystal report export is crashing IIS7....but it works just fine in visual studio's cassini web server. And if I create a web form and use the crystal reports web viewer, view the report and then export from the viewer it also works fine (IIS7 and cassini). And I should note this all works fine in IIS6...
by: Darwiniv | last post by:
1. Does anyone run ASAPI and mysql succesfully on Vista /IIS7? 2. Does anyone run CGI and display all SESSION errors on Vista /IIS7? php ASAPI doesn't works with MYSQL. And CGI doesn't show any SESSION error message. PHP had so much bugs on windows vista. I using php-5.2.1-Win32
by: Mark Rae | last post by:
Hi, Now that the VS.NET 2005 SP1 update patch is with us, I'm in the process of moving my main development environment onto 64-bit Vista Business Edition - so far, so good... However, there is a bit of a gotcha with Request.UserHostAddress... Under IIS6 and earlier, that would return a standard xxx.xxx.xxx.xxx IP address. However,...
by: =?Utf-8?B?ZGF2ZQ==?= | last post by:
I moved to a new pc (vista ultimate) and copied an existing working asp.net application to the new web site on localhost. I installed iis7 with a number of asp.net and developer type windows components. The problem occurs when I select something (on the web site) where it is using xmlHttp call back to project.axd (handler). After a couple...
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi, I wonder if someone could shed some light on this one for me. I have developed a web app in VS2005 with the built in server. It uses an sql database, everytihng works. I need to test it across the network, so i've installed IIS7 on my Vista machine and created a new website, point at the website's directory. After I switched to the...
by: PW | last post by:
Has anyone used the traditional Classic ASP / Access DB / IIS configuration on Vista yet? I haven't, but before I upgrade to Vista I would like to ensure all my websites will work once I do. What version of Vista is best to use (and includes IIS) ? What problems did you have with database connectivity ?
by: ma | last post by:
Hello, I am new to IIS and ASP.NET. I wrote my first ASP.NET and I want to deploy in to a system which has Vista Business and IIS7. I copied my files to the target computer and created a virtual directory. I add default.aspx to the list of default pages for the virtual directory. My problems are: 1- On vista computer I am trying to...
by: Alan M Dunsmuir | last post by:
After having worked with Apache/MySQL/PHP for a year or so under Linux I need, purely for convenience, to set up a parallel platform under Windows. Unfortunately, since I last did this (using Windows XP Pro) I've moved on to Windows Vista (Home Premium). MySQL and Apache2 have both installed satisfactorily, but I'm having problems with PHP5....
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.