Click to See Complete Forum and Search --> : http 500 error


lanzecki
06-11-2007, 06:46 AM
Hi,

I have installed a new IIS6 on 2003 server. I have installed PHP 5 (msi installer) and I get a http 500 error The website cannot display the page.

Initially I thought it was a php install error, so I removed php5 and installed manually PHP4.

I have double checked the install, and everything is OK, Right, paths, locations etc..

I know I have not given you much information to go on, but I don't understand what's going on.. Dropping a htm file in that location opens that file OK. delibratly getting the address wrong displays the correct error (404).

Everything else (ASP and HTML work fine..)

Funny thing is I get the same error on a near identical server. I installed the new server as the old one has many problems which I (incorrectly) assumed was the reason for PHP not working on the first server.

bpat1434
06-11-2007, 08:54 AM
What does the IIS log say?

lanzecki
06-11-2007, 04:17 PM
Thanks for looking at this..


This is an existing files. error 500..

#Date: 2007-06-11 19:10:18
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
2007-06-11 19:10:18 192.168.2.202 GET /eqdkp/install.php - 80 - 192.168.2.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.0.3705;+.NET+CLR+1.1.4322) 500 0 127

And this is an unexisting file. An expected error 404.

[I]Date: 2007-06-11 10:02:42
#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) sc-status sc-substatus sc-win32-status
2007-06-11 10:02:42 192.168.2.202 GET /eqdkp/insall.php - 80 - 192.168.2.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+1.0.3705;+.NET+CLR+1.1.4322) 404 0 2[/I1

bradgrafelman
06-12-2007, 05:01 AM
I would highly recommend you remove all traces of PHP from IIS and then follow the guide I've posted in the FAQ in this forum.

It really sounds like there's a path problem with loading PHP itself. Are you installing PHP to a directory without spaces (e.g. c:\php\) ?

lanzecki
06-12-2007, 05:08 PM
Thanks for the reply.

I've installed it on 2 IIS6 servers, and on this server have used the installer version of 5.??? (latest) and the self install of 4.??

I'm somewhat used to dos prompts and I felt happy doing the changes that were required to install the manual version.

The path points at c:\php

The web service extension points at c:\php\\php4ts.dll and is allowed

all users (at the moment are allowed full access rights to c:\php

If I use command promt and goto c:\inetpub\shadows\eqdkp I can run

"php install.php" and the output is correct.

One thing I don't understand is how the the server know to execute the .php code when it is called from internet explorer..

Any light you guys can cast is apprechiated..