[PHP-DEV] Apache 1.3.6 and authentication From: Pierre Crevoisier (crevois7 <email protected>)
Date: 09/02/99

Hi, folks!

I do have some troubles installing on a Windows NT Server (with Apache
1.3.6 Win32 pre-compiled distribution, PHP 3.0.11 and MySQL 3.22) the
tool we just developped under a SUN machine
We have indentified the cause but not the medecine ;)

Everything works fine until we ask the user to get authentified:

We use the Header authentication method:

**** extract ****
        if(!isset($PHP_AUTH_USER)) {
                Header("WWW-authenticate: basic realm=\"tool admin\"");
                Header("HTTP/1.0 401 Unauthorized");
                
                require("config.inc");
                echo"<blockquote>\n
                        <br>\n
                        <message>
                exit;
                
        }
        etc...
****************
It's OK with the SUN server (nothing is transmitted before the Header)

Under NT, we never see the authentication popup window, but we get the
following error message:

********************
Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, xxxxxx and inform them of the
time the error occurred, and anything you might have done that may have caused
the error.

More information about this error may be available in the server error log.
**********************
And the server error log gives us:
**********************
[Thu Sep 02 19:37:15 1999] [error] [client xxxxxx] malformed header from
script. Bad header=HTTP/1.0 401 Unauthorized: d:/phpgroup/php3/php.exe
**********************

We do think the solution should be in the Apache configuration... but where?
Do you have any idea?

Kind regards,

Pierre

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>