View Full Version : problem accessing admin site

04-02-2004, 07:55 AM
Hi all,

After installing phpDig successfully and indexing our test server, accessing the admin site now causes apache to be locked in an infinite serving loop, never ending and never serving any content. I've attemped to reinstall but the same thing happens.

Has this happened to anyone else?

04-10-2004, 02:48 PM
Hi. Using Windows? From php.net (http://www.php.net) is the following:

Also note that until PHP 4.3.3, HTTP Authentication did not work using Microsoft's IIS server with the CGI version of PHP due to a limitation of IIS. In order to get it to work in PHP 4.3.3+, you must edit your IIS configuration "Directory Security". Click on "Edit" and only check "Anonymous Access", all other fields should be left unchecked.

Another limitation is if you're using the IIS module (ISAPI), you may not use the PHP_AUTH_* variables but instead, the variable HTTP_AUTHORIZATION is available. For example, consider the following code: list($user, $pw) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));

IIS Note:: For HTTP Authentication to work with IIS, the PHP directive cgi.rfc2616_headers must be set to 0 (the default value).

Note: If safe mode is enabled, the uid of the script is added to the realm part of the WWW-Authenticate header.