[mod_python] installation woes: Redhat 7.0, mod_python 2.7.1, apache 1.3.12

F. Schwieterman fschwiet at u.washington.edu
Tue Dec 19 16:13:59 EST 2000


  Well I was hoping that a fresh Redhat install 7.0, followed by a fresh
install of Apache 1.3.12, followed by an install of mod_python 2.7.1 would
quickly get me running.  (I've spent a lot of time trying to get
mod_python to work in Mandrake to no avail).

  Anyhow, installation goes smooth but the when I run the test file as
'http://localhost/mod_python/python_handler.py' I get an internal server
error.  (this is after restarting the server appropriately)

  Anyhow, the contents of /var/log/httpd/error_log is  
[Tue Dec 19 15:37:28 2000] [notice] Apache/1.3.12 (Unix)  (Red
Hat/Linux) mod_python/2.7.1 Python/2.0 configured -- resuming normal
operations
[Tue Dec 19 15:37:36 2000] [error] [client 127.0.0.1] File does not
exist: /var/www/html/mod_python
'import site' failed; use -v for traceback
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
[Tue Dec 19 15:38:20 2000] [error] [client 127.0.0.1]
python_handler: make_obcallback returned no obCallBack!
'import site' failed; use -v for traceback
make_obcallback(): could not import mod_python.apache.
make_obcallback(): could not call init.
[Tue Dec 19 15:59:27 2000] [error] [client 127.0.0.1]
python_handler: make_obcallback returned no obCallBack!


  Since accessing the test file as
'file:/var/www/mod_python_test/pythonhandler.py' simply gives me the text
of the result, I think that mod_python isn't at all installed so that the
following httpd.conf lines are being ignored:
<IfModule mod_python.c>
  Alias /mod_python/ /var/www/mod_python_test/
  <Directory /var/www/mod_python_test>
    AllowOverride FileInfo
  </Directory>
</IfModule>




  Anyhow I'm not really a Linux user so if anyone had any advice on how I
can get mod_python working that'd be great.  It seems like these RPMs
should be useable from a fresh Redhat install..  If I don't get any
replies soon I'll contact the RPM author to see what I'm missing.





More information about the Mod_python mailing list