[mod_python] Problems with mod_python

Gregory Trubetskoy grisha at modpython.org
Fri Aug 18 12:38:23 EST 2000


the only thing I can think of is that the direcories where mod_python is
should also be world executable...

Grisha

On Fri, 18 Aug 2000, William Smith wrote:

> I am using RedHat 6.2 x86, Apache 1.3.12 and mod_python 2.4.1.
> I compiled and installed mod_python with apxs.
> Apache runs as user nobody and group nobody
> 
> I read the modpython archives and have the following server errors
> which I saw mentioned in the archive message Aug 2, 2000 by
> Boh Heong Yap (bohheong at asiacontent.com):
> 
>    make_obcallback(): could not import mod_python.apache.
>     make_obcallback(): could not call init.
> 
> I tried in httpd.conf both:
> 
> <Directory /usr/apache/python>
>         AddHandler python-program .py
>         PythonHandler test
>         PythonDebug On
> </Directory>
> 
> and
> 
> <Directory /usr/apache/python>
>     AddHandler python-program .py
>     PythonHandler test
>     PythonDebug On
> </Directory>
> 
> which I also saw in the archives as a fix.  However this did not work.
> 
> The directories and files in
> /usr/lib/python1.5/site-packages/mod_python are world readable but
> owned by root.
> 
> Using the comand line I get:
> 
> File "/usr/lib/python1.5/site-packages/mod_python/apache.py", line
> 18, in ?
>     import _apache
> ImportError: No module named _apache
> 
> when I try "from mod_python import apache".
> 
> Any help getting this to work would be appreciated.
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
> 




More information about the Mod_python mailing list