2

I'm getting 401.1 errors when trying to run a .php file on windows 2003/IIS6 I've been all over the web, given Everyone Full perms on the folder containing the file as well as the file... Nothing.

What am I missing?

2 Answers 2

0
  1. can you serve HTML in the folder trying to serve PHP?

  2. If yes, what are the permissions on the PHP directory and PHP DLL (e.g. php5isapi.dll)? The IUSR will need execute.

Sign up to request clarification or add additional context in comments.

14 Comments

1. Yes, I am able to serve HTMl and ColdFusion, just not PHP 2. When you say PHP directory, do you mean C:\PHP? and the php5isapi.dll in the windows/system32 dir?
Yes, that's what I meant by the DLL. Where the DLL lives varies by installation, so it could be in either C:\PHP or system32. I'd try adding read/execute on the DLL first, test, and then on the C:\PHP directory if that doesn't work.
Tried both of these, to no avail.
Odd. Did you try this in locally in IE?
Another thing to check, in the Application Configuration in IIS, check that the IUSR has read and execute permissions on the DLL .php is mapped to and that it allows the GET and POST verbs.
|
0

Take a look at the logs produced by IIS (found somwhere in C:\WINDOWS\system32\LogFiles\W3SVC1) this might give you some additional info.

2 Comments

Um, the last modified date on any log in the w3svc1 file is 3/28/2005. Is there something I need to turn on as far as logging?
No ... it should be there ... it's just a simple GET, POST list of requests. Try making a request to some other (not PHP) site hosted on your IIS and see if the log is there.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.