[mod_python] Re: Configuring Apache

Peter Bittner peter.bittner at gmx.net
Tue Jul 30 19:14:32 EST 2002


I've probably found the reason why Apache shows a 500-error. The Apache
error log shows:

  make_obcallback(): could not import mod_python.apache.
  make_obcallback(): could not call init.

This because I tried to execute the following script (index.py):

  from mod_python import apache
  def handler(req):
        req.write("hello %s" % req.remote_host)
        return apache.OK

And when I run python from the commandline and try this:
  import mod_python
Python tells me it doesn't know any module named mod_python!

How do I fix this problem??


Peter Bittner
mobil: +43/(0)650/4151545
web: http://beam.to/peter.bittner - http://beam.to/htmlkurs
mail: peter.bittner at gmx.net

"Free software is like free speech, not free beer" (Richard Stallman)

GMX - Die Kommunikationsplattform im Internet.

More information about the Mod_python mailing list