LinkShare  Referral  Program

New

Advertise ad Here
learn more
            PHP > Installing PHP on IIS 7 pag 2
Useful

Links


Free technical Tutorials At techtutorials.net



Link Exchange at iWEBTOOL.com

 



The PHP Resource Index


iBuyOfficesupply.com Inc. There are N. 42 Comments for this Article
Ask any relevant question in the Comments or leave your valuable feed-back

printer  Print version of this article

star  Add it to your favourite!

mail email this page to a frend
LinkShare  Referral  Program
Added on   2008-01-23
Clicks     45400
Rating:   3.76   out of 5 from   61   raters      
         rate this page   
 Not rated yet.Be the first one to vote!!

How to Install PHP 5.2 on IIS 7and Windows Vista

  • Installing IIS 7 on Vista
  • Installing and configuring  PHP on IIS 7 pag 1
  • Installing and configuring  PHP on IIS 7 pag 2
  • Installing MySql on Vista
  • How to set IIS7 to handle PHP in static pages


  • Install PHP 5.2 on Vista and IIS 7

    pag 2 of 2


    



      IIS properties
      Fig 4





      IIS configuration
      Fig 5




      IIS extension Service
      Fig 7

       


      IIs Extensions Add dialog box
      Fig 8

       


      WEbService Extension Properties
      Fig 9

       


    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 C:\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 permissionsOpen 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.

    Read this article How to set IIS7 to handle PHP in static pages 

    If you have any problems installing PHP, please, don't hesitate to contact me from here

    Back to page 1

    Comments

    Post your comment here or ask any question that is rilevant on what is shown in this page.
    Thank you for visiting this website

    N. 38 Comments for this page!   add a comment


    From:  Tim   Comment Nr 1    
     Posted on  19/10/08
      http://www.ft950.com
     Very good, big help. Thanks

    From:  Robert Skolnick   Comment Nr 2    
     Posted on  22/10/08
      http://www.allbikesandtrike
     only 2 words THANK YOU best instructions on the internet Gator All Bikes and Trikes

    From:  Dave Allen   Comment Nr 3    
     Posted on  05/01/09
      
     When a script map error appears; "Module you required by this handler is not in the modules list"!! Can you help?

    From:  JP   Comment Nr 4    
     Posted on  06/01/09
      
     I guess it's just what the errorr says,check the directory of the PHP module you added in the Handler Mapping section in IIS.

    From:  Gopu   Comment Nr 5    
     Posted on  30/01/09
      
     saving the *.php was a problem, thanks a million

    From:  dforeigner   Comment Nr 6    
     Posted on  31/01/09
      
     Thanks a lot for this. Have been trying the whole day. but only now found a decente tutorial. Cheers

    From:  Gareth   Comment Nr 7    
     Posted on  05/02/09
      http://www.gjit.co.uk
     Thanks, that was excellent. Worked without the reboot.

    From:  Muthu   Comment Nr 8    
     Posted on  15/03/09
      
     What a great tutorial man, thanx thanx thanx a lot

    From:  Ali   Comment Nr 9    
     Posted on  13/04/09
      
     Many Thanks for your help.

    From:  John Taylor   Comment Nr 10    
     Posted on  25/05/09
      
     FANTASTIC tutorial. Fairly new to php and mysql and I could follow your instructions very easily. I would love to see a tutorial on installing phpmyadmin any ideas on a good one since I couldn't find one here. AGAIN FANTASTIC

    From:  Ninad Gawade   Comment Nr 11    
     Posted on  23/06/09
      
     thanks a lot man, really appreciated. gud work. :)

    From:  Alex   Comment Nr 12    
     Posted on  30/06/09
      
     Awesome... Huge help. A typo though on Step 8: its C:\PHP not C:\\PHP

    From:  Bob Mason   Comment Nr 13    
     Posted on  16/07/09
      
     Followed everything till http:/localhost/phptest.php but then get Error 404.17, Not sure where I have gone wrong

    From:  jp50   Comment Nr 14    
     Posted on  17/07/09
      
     Bob Mason,is your Vista version 64bits?

    From:  Bob Mason   Comment Nr 15    
     Posted on  17/07/09
      
     Yes Ihave 64 bit Vista

    From:  jp50   Comment Nr 16    
     Posted on  17/07/09
      
     I'm sorry,Bob, but this article is only for Vista 32 and I didn't have that error but,however,as far as I know you need to enable 32-bit extensions in IIS7 to prevent this error in Vista 64.Right click on the Application Pool and select "Advanced Settings" then "Enable 32-bit Applications." I don't guarantee it'll work because I can't test it but you can give it a go and go back if negative.

    From:  Bob Mason   Comment Nr 17    
     Posted on  18/07/09
      
     Enable 32-bit Applications in the applications pool worked once I figured out how to do it in IIS 7 which is a lot differnt from the menus in IIS 6

    From:  jp50   Comment Nr 18    
     Posted on  18/07/09
      
     I guess it is,but,as i said,I haven't got Vista 64.Glad you got it running,though. If You send me some picture of the steps you did and few words how you did it,I will put it on this site and it might help somebody else.

    From:  Jenni   Comment Nr 19    
     Posted on  24/07/09
      
     Thanks SOoooo much! This was a big help, after following a PHP tutorial online that had no information on Windows Vista. This has solved my problems getting started!

    From:  Melissa   Comment Nr 20    
     Posted on  27/07/09
      
     Newbie to PHP - bought a very expensive tutorial book and thought I'd fallen at the first hurdle - till I discovered this tutorial. THANK YOU SOOOO MUCH - YOU ARE A LEGEND!!

    From:  Menno   Comment Nr 21    
     Posted on  29/07/09
      
     The tuts looks great. Just like any other on this guestbook said, finally a tut for Vista 32. However, I still haven't managed to get this thing to work :-( You'll probably gonna laugh if i'd tell you that i've been trying for weeks now! On XP, Vista and Windows 7 Evaluation. I got a perfectly running phpinfo but get an http error 500.0 internal server error. Here's what I get on Windows 7, which is, I think, same as Vista. Detailed Error Information Module: IsapiModul e Notification ExecuteRequestHandl er Handler PHP Error Code 0x00000000 Requested URL http://localhost:80/basic_templ ate/index.php?action=login Physi cal Path C:\inetpub\wwwroot\basic_te mplate\index.php Logon Method Anonymous Logon User Anonymous I really hope one of you is going to save my day! Thanks in advance.

    From:  Menno   Comment Nr 22    
     Posted on  29/07/09
      
     Test, previous message didn't work

    From:  Ankita Mittal   Comment Nr 23    
     Posted on  03/09/09
      
     Hey thank you so much it was big help .However , i ahve a problem, though i ma able to run a php program but when i run http:/localhost/phptest.php on my browser i don't get any info. instead it shows an error that http 404 not found

    From:  jp50   Comment Nr 24    
     Posted on  03/09/09
      
     Make sure you saved the file in the root directory,and then check all the steps in the second part of this article.

    From:  Riz   Comment Nr 25    
     Posted on  06/09/09
      
     http:/localhost/test.php . test.php is my file and the error is ( HTTP Error 404.3 - Not Found The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.) where i ve mistaken need help Thanks

    From:  jp50   Comment Nr 26    
     Posted on  06/09/09
      
     Hi Riz, as far as I know your file is a scripr,therefore u have done something wrong adding the handler.Review step 6,the most common error is forgetting the star at the beginning of REQUEST PATH. Let us know

    From:  Riz   Comment Nr 27    
     Posted on  06/09/09
      
     Hello jp50 , ITS ROCKING now :) yeah the same mistake but anyways .... thanksss alot

    From:  Brian Nichols   Comment Nr 28    
     Posted on  07/09/09
      
     Thanks for helping sort out this installation, but one thing is not quite right. I am using a php guestbook that displays either the comments or submission form according to a variable sent as a GET request. Once I have loaded that php page (in either mode) it will not switch to the other, but gives Internal Server Error (500). It seems that w3wp.exe has a lock on the php file. I have to restart IIS7 and browsers in order to see the guestbook in the other mode. How do I get around this? Thanks B

    From:  Mike   Comment Nr 29    
     Posted on  01/10/09
      
     I don't seem to have the ISAPI item in the IIS manager... any ideas?

    From:  jp50   Comment Nr 30    
     Posted on  01/10/09
      
     What version of Vista do you have? When you install IIS you have to select the ISAPI feature ,have you done it?

    From:  Luther Martin   Comment Nr 31    
     Posted on  06/10/09
      
     Your information seems to be right on. I have been trying to implement PHP 5.3, but the filter, C\:PHP\php5isapi.dll is not in the package. What filter could be substituted in the 5.3 package? Thanks for all the very good information you are posting. I have not seen it any place else.

    From:  jp50   Comment Nr 32    
     Posted on  06/10/09
      
     hiLuther, Apparently php5isapi.dll is not more in the package from this PHP version.To solve your problem temporaly,you can download the previous 5.2.9-2 package and install it or to keep the 5.3 copy the php5isapi.dll from the 5.2.9-2 and paste it in the 5.3 folder.It will work just nice.But for the future we'll have to Use the FastCGI interface instead which is available for IIS5/6/7.I'm writing a new tutorial for that. Hope this help

    From:  isaac   Comment Nr 33    
     Posted on  11/10/09
      
     THIS IS WHAT I GOT AT THE LAST STEP>>>PLZ HELP HTTP Error 404.0 - Not Found Description: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. Error Code: 0x80070002 Notification: MapRequestHandler Module: IIS Web Core Requested URL: http://localhost:80/phptest.php Physical Path: C:\inetpub\wwwroot\phptest.php Logon User: Anonymous Logon Method: Anonymous Handler: PHP Most likely causes: * The directory or file specified does not exist on the Web server. * The URL contains a typographical error. * A custom filter or module, such as URLScan, restricts access to the file. What you can try: * Create the content on the Web server. * Review the browser URL. * Create a tracing rule to track failed requests for this HTTP status code and see which module is calling SetStatus. For more information about creating a tracing rule for failed requests, click here. More Information... This error means that the file or directory does not exist on the server. Create the file or directory and try the request again. Server Version Information: Internet Information Services 7.0.

    From:  jp50   Comment Nr 34    
     Posted on  12/10/09
      
     Isaac, I think you have to check the step N.6 on this page.Make sure you type *.php when mapping the phpisapi to the handler mapping. Hope this helps

    From:  uOlter   Comment Nr 35    
     Posted on  22/03/10
      
     good job, very useful. thank you

    From:  Deepa   Comment Nr 36    
     Posted on  19/04/10
      
     This tutorial is really very helpful. Thanks you so very much.

    From:  Lubana   Comment Nr 37    
     Posted on  04/05/10
      
     I was stucked at this...Thanks a lot..

    From:  keng   Comment Nr 38    
     Posted on  01/06/10
      
     Greatest article,It helps me
    i