installing php 5 on IIS 5.1

Discussion in 'PHP' started by neptun221, Jan 13, 2010.

  1. #1
    Hi there!

    I am totally new with programming and php. I just installed php 5 and IIS 5.1 and want to strat learning that . But I cannot access even the hello.php file. there is a blank screen (when I acces view sourse there is normal script). the phpinfo() doesn/t works as well. I checked a lot of manuals and forums and I changed a lot of settings, so I don't know what could be a problem.

    Can somebody help mi in this matter?

    thank you ina advance,

    Kasia
     
    neptun221, Jan 13, 2010 IP
  2. superdav42

    superdav42 Active Member

    Messages:
    125
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Sounds like you just need to configure IIS to execute php files instead of displaying them.

    Configure IIS to use PHP.

    1. Open IIS
    2. Under Home Directory: Set "Execute Permissions" to "Scripts Only"
    3. Click on configuration..
    a. Click Add
    b. Set "executable" to C:\PHP\php5isapi.dll (or wherever the path to this file is)
    c. Set "extension" to .php (don't forget to include the . )
    d. Click OK
    e. Click Apply, then OK. Under ISAPI Filters
    a. Click "Add"
    b. Set Filter Name to PHP
    c. Set Executable to C:\PHP\php5isapi.dll (or wherever the path to this file is)
    d. Click OK.
    e. Click Apply, then OK. Restart the Web Server

    I found these directions at the site http://www.webpronews.com/expertarticles/2006/06/19/installing-php-on-iis-windows-xp-pro

    Hopefully they will work for you.
     
    superdav42, Jan 13, 2010 IP
  3. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    you might want to try xampp no installation required
     
    javaongsan, Jan 13, 2010 IP
  4. neptun221

    neptun221 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thx, it worked ;)
     
    neptun221, Jan 18, 2010 IP