[mod_python] Inline python on Apache

Lindsey Smith lsmith at thinkstream.com
Tue Aug 21 08:57:10 EST 2001


I had difficulties getting it to run with a similar setup as well. One thing you could do is making sure that the mod_python lib subdirectory under your python21/lib (or whatever) directory is named "mod_python" and not "mod_python_v1.2.3.whatever". This snagged me for a while.

- Lindsey Smith
  ----- Original Message ----- 
  From: Paul Goodyear 
  To: mod_python at modpython.org 
  Sent: Tuesday, August 21, 2001 6:19 AM
  Subject: [mod_python] Inline python on Apache

  I have been trying to get the mod_python.dll working but have given up.

  I have tryind the following

  LoadModule python_module modules/mod_python.dll

  in the httpd.conf and also tried the line

  AddType application/x-httpd-py .py

  but am not sure this was correct.

  The .py file refused to work, all I get is the "Internal Server Error"

  So I have set it up as CGI and HAVE to put the #!/Python21/python at the top of every .py file.

  I have been using PHP for over a year and Python as well on ISS 5 but since i've moved to Apache I can't get the Python module working.

  Can anyone shed some light.

  Windows 2000 Server (SP2)
  Apache 1.3.20
  PHP 4.0.6
  Python 2.1.1


  paul goodyear
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20010821/faaa8c15/attachment-0003.htm

More information about the Mod_python mailing list