IIS
(1)
XP
(1)
PHP
(1)
XPSP
(1)
INTERACTIVE
(1)
NTFS
(1)
SP
(1)
FreyHmm
(1)

Anonymous Access to PHP Pages not working

Asked By Daniel Frey
13-Feb-07 07:46 PM
Hi

A freshly installed IIS on my Windows XP SP2 does not allow anonymous
acces to the a simple info.php file that prints the phpinfo(). I just
used default configuration for installation, which enables anonymous
access. But when I load http://localhost/info.php I just get a login
box. A simple index.html placed manually for debugging purpose loads
without login prompt.

I am testing the same thing on a Windows XP (w/o SP2). PHP works for
anonymous access like a charm.

As I am not familiar with IIS and PHP I would appreciate any hints to
solve the problem.

Thanks in advance.
Daniel Frey

Hmm.

Asked By David Wang
14-Feb-07 08:01 AM
Hmm. Well, my freshly installed XPSP2 with IIS and PHP default install
works just fine for phpinfo() with anonymous authentication. The
problem is something specific to your non-default XPSP2 installation,
and we have to figure out your non-default configuration problem.

I would start by verifying that:
1. info.php and index.html have the same NTFS ACLs
2. info.php and index.html have the same Authentication protocols
configured and enabled
3. Depending if you configured PHP ISAPI or PHP CGI on IIS, make sure
the NTFS ACLs on all those binaries are the same between your XPSP2
machine and XP machine.
4. The configured username/password for anonymous authehntication,
stored in IIS, match up with the actual username/password on XP


I suspect that some setup program configured mistakes for info.php
which are harder for average users to figure out. Create and use your
own index.php file for testing.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Thanks a lot David.

Asked By Daniel Frey
15-Feb-07 11:06 PM
Thanks a lot David. Comparing the ACLs of the enclosing folder
user defined, both with Read and Execute rights for this folder and
subfolders.

Cheers
Daniel
Post Question To EggHeadCafe