Pages

Thursday, April 19, 2007

Php, Firefox and IIS - Authentication Required message for localhost sites

I had some trouble trying to run some php scripts located on an virtual site located on a different place than the default root site of iis (c:\inetpub\wwwroot). In my case the scripts where located on d:\sites.
What I found is that I have to set the doc_root setting of the php.ini file to d:\sites
;doc_root = "c:\inetpub\wwwroot"

doc_root = "d:\sites"

Now the php script run very well on internet explorer but accessing the script with firefox browser give me an Authentication Required message box asking me to enter an user name and a password. To address this issue I googled here and there and I found that I have to configure Firefox by setting the network.automatic-ntlm-auth.trusted-uris entry of the about:config file to value localhost
Further reference:
http://en.wikipedia.org/wiki/NTLM
http://www.mozilla.org/projects/netlib/integrated-auth.html
http://www.crossedconnections.org/w/?p=89

1 comment:

Daniel said...

An question is rised here. Can I use multiple locations for doc_root ?