+ Post New Thread
Results 1 to 4 of 4
Windows Thread, Problem setting up PHP on IIS 6 in Technical; Hi, I have setup an IIS webserver and installed PHP using these instructions ( How to install PHP 5.x on ...
  1. #1

    Join Date
    Oct 2008
    Posts
    9
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Problem setting up PHP on IIS 6

    Hi,

    I have setup an IIS webserver and installed PHP using these instructions (How to install PHP 5.x on Windows Server 2003 with IIS 6)

    I followed the instructions exactly but the webserver wont load .php files giving the error message:

    Code:
    HTTP Error 401.5 - Unauthorized: Authorization failed by an ISAPI/CGI application.
    Internet Information Services (IIS)
    (see http://www.lordswoodgirls.co.uk/test.php)

    I typed php -v in the command prompt and got the message:

    Code:
    C:\Documents and Settings\Administrator.LORDSWOODGIRLS>php -v
    PHP 5.2.6 (cli) (built: May  2 2008 18:02:07)
    Copyright (c) 1997-2008 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    Which, I assume, shows that PHP is successfully installed on the computer but for some reason the IIS webserver doesn't know what to do with php files.

    Could someone please help with this problem. I'm at a complete loss.

    Thanks

  2. #2

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,845
    Thank Post
    876
    Thanked 1,680 Times in 1,460 Posts
    Blog Entries
    12
    Rep Power
    444

  3. #3

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,262
    Thank Post
    242
    Thanked 1,568 Times in 1,250 Posts
    Rep Power
    340
    This article should point you in the right direction.

  4. #4

    Join Date
    Oct 2008
    Posts
    9
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks guys. Got it working.

    I think the problem was that I set the environment variable to C:/PHP. I copied the php.ini file to C:/WINDOWS and it seemed to sort it. Don' really know why that should've caused a problem but it's working now

SHARE:
+ Post New Thread

Similar Threads

  1. PHP & IIS
    By Edu-IT in forum Web Development
    Replies: 25
    Last Post: 23rd April 2009, 09:48 AM
  2. PHP on IIS 6
    By Ryan in forum Windows
    Replies: 1
    Last Post: 27th May 2008, 01:32 PM
  3. Can't get mysql and PHP to play together on IIS
    By dagza in forum Web Development
    Replies: 5
    Last Post: 20th January 2008, 03:38 PM
  4. PHP and LDAP on IIS
    By srochford in forum Windows
    Replies: 2
    Last Post: 31st October 2007, 09:05 AM
  5. SiteAtSchool / IIS / PHP / MySQL / Server 2003
    By OutToLunch in forum Windows
    Replies: 4
    Last Post: 5th February 2007, 02:19 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •