473,473 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

Hi,

I am one of those questionable people that started with Vista (Home
Premium).
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.

Install:

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:

http://blondr.blogspot.com/2006/11/s...and-php-5.html

This one describes also installing mysql.

and

http://blogs.iis.net/bills/archive/2...RC1_2900_.aspx

Mind that in this description step 4 says:
<quote>
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)
</quote>

I misinterpreted that line at first, but it means that WHEN installing
IIS7, you must specifically select (by hand) that ISAPI Extensions are
allowed.
http://blondr.blogspot.com/2006/11/s...and-php-5.html
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!

Regards,
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 5959

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

Similar topics

5
by: David Reynolds | last post by:
Is it possible to create an ISAPI dll using VB.Net?
3
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...
8
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...
9
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...
0
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...
5
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...
4
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. ...
6
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...
12
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
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,...
1
isladogs
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...
0
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...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.