[mod_python] Problems with PythonAuthenHandler on Red Hat 8.0?

T.-S. Yang tsyang at webtech360.com
Thu Dec 26 13:56:52 EST 2002


Jim,

I'm able to reproduce the error that you described using RedHat 8.
The problem is fixed under ReHat 8.0.92 (Phoebe).

I don't know the cause of the problem. The related packages in Phoebe
are

httpd-2.0.40-14
python-2.2.2-7
mod_python-3.0.1-1

Happy Holidays,
-tsy


Jim Thario wrote:
> Hi. I recently stared working with mod_python. I am using the stock Red
> Hat 8.0 installation which includes:
> 
> httpd-2.0.40-11
> python-2.2.1-17
> mod_python-3.0.0-10
> 
> I am having trouble with the example from "3.4 Now something More
> Complicated - Authentication". My configuration in httpd.conf looks like:
> 
> <Directory /var/www/html/python>
>         AddHandler python-program .py
>         PythonHandler myscript
>         PythonAuthenHandler myscript
>         PythonDebug On
>         AuthType Basic
>         AuthName "Restricted Area"
>         require valid-user
> </Directory>
> 
> After getting prompted for the user and password, I get a "Server error!"
> page and an entry in the /var/log/httpd/error_log:
> 
> "configuration error:  couldn't check user.  No user file?: /python"
> 
> Apache seems to want an AuthUserFile in there to read. The best I can
> guess is there is a problem with the version of mod_python shipped with
> Red Hat 8.0.
> 
> Any ideas?
> 
> Thanks in advance,
> Jim
> 




More information about the Mod_python mailing list