Re: PHP_AUTH_USER not set?
| From: | Ed Klavins | Date: | Fri, 14 Jul 2000 15:05:48 +0000 |
| Subject: | Re: PHP_AUTH_USER not set? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6648@lists.php.net to get a copy of this message | ||
More or less the same problem, I think...
I've found that if I comment out all authorization in httpsd.conf
<Directory />
#Order deny,allow
#Deny from all
#Allow from .mydomain.ch
#Auth_MySQL on
... etc.
then it does work. But with it enabled it doesn't work. Even if i specifically
try to disable it like:
<Directory "/usr/local/apache/htdocs/db">
Options None
AllowOverride None
Allow from all
Auth_MySQL off
Any other options I can put above to disable the apache authentication
properly??
thanks, ed
Magnus Hammar wrote:
> >No, you definitely don't need any .htaccess stuff. In fact, this is most
> >likely your problem. If you configure Apache to do authentication via
> >.htaccess (or directly from your httpd.conf) then you can't use PHP to
> >authenticate on that same resource.
>
> It works for me on my other server and I _can_ use .htaccess there, with
> Apache, but NOT in the same folder of course if I want to use
> authentication with php. :)
>
> But the problem remains, why does $PHP_AUTH_USER and $PHP_AUTH_PW return
> empty and why can't you use authentication with php like you "used to"?
>
> In my case you only get the login-window and then all the authentications
> will fail and no user och pass is returned.
>
> I hope that you, Ed Klavins, have the same problem so you don't feel like
> I'm "taking over" this question.
>
> Thanks
> /Magnus Hammar