Jump to content

Recommended Posts

Posted

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:

 

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:

 

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

Posted

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:)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...