Exclusive Affiliate-Only Offer:
$9.99 Domain Names
Drive sales with one of the most aggressive domain offers out there: A domain and professional email account for only $9.99!
Log on as Administrator Go to Start / ControlPanel / Administrative Tools and double_click on Internet Information Service
See Fig1
Fig 1
IIS Manager window opens(see Fig
2)On the left pane click on whatever your computer name is ,and in the
middle pane double-click on Isapi Filters.
Fig 2
On the right pane,under Action click on add.
Fig 3
In the Executable type
D\:PHP5\php5isapi.dll , where D:\PHP5 is the directory where you have
installed PHP.Or you can just click on the
and browser for the dll to avoid any mistakes.Then in the Filter name type PHP and press OK .
Fig 4
With the blue arrow on the top-left corner go back to the same page as for Fig 4 ,and this time double-click on Handler Mapping,on the new window(Fig 7) click on Add Script Map on the right pane under Action.
Fig 5
On the next dialog Box ( Fig 8)in the
Request Path Type *.php (don't forget the star at the beginning) and in the Executable type
D:\PHP5\php5isapi.dll , where D:\Php5 is the directory where
you have installed PHP ,or else click onand
just look for the DLL, then in the Name type PHP,and then click OK.
When you finish you should get a prompt like the one below( Fig 9).Click OK and close all the windows and restart your computer to reload the new configurations including the new system variables we have done in the first part.
When Windows7 has restarted log on as Administrator , navigate to the website root,by default C:\InetPub and right-click on the folder wwwroot choose properties and security tab and grant all permissions to IISUser and to anyone who has to save files to that folder and close all windows.
Fig 7
Now you ready for the test.,open a new file
with notepad and type:<?php phpinfo(); ?> Save it in your website root directory that should be
D:\Inetpub\wwwroot as phpTest.php not as text file but all
files or it wont work.if you find problems saving in the website root folder,check the security permissions
or close notepad then open it as administrator, to do
it,just rightclick on notepad in programs/Accessories and
choose Run As Administrator,then create a new file like
before and this time you will save it not problems..Open your web browser and type in the address bar http:/localhost/phptest.php
and ,if a page with all the php info appears ,it means that you have php
succesfully installed and running.
hi.i'm having a problem here.i do exactly as what you what you said.but at last instead of php info page i get an error page with this title :HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler
what shoud i do?
From: jp50
Comment Nr 2
Posted on 02/07/10
You just have to allow IIS7 to serve scripts
From: pertinaciousD
Comment Nr 3
Posted on 10/07/10
I'm getting the same 404.17 error. How do you allow IIS7 to serve scripts? As the tutorial instructed, I created Handler Mappings for *.php and *.html, and created an ISAPI filter for php5isapi.dll.