Apache and Python

Erik Price eprice at ptc.com
Mon Apr 14 14:27:30 EDT 2003


Kenneth E. Lussier wrote:
> Hi All,
> 
> Does anyone have any experience using Python scripts with Apache? I am
> trying to set up a web-based application call Amphora-Lite.
> Unfortunately, I have absolutly no experience with Python, and most of
> the system is written in it. I can get the main page and the login to
> work, but afer that, I get three frames of "Internal Server Error"
> messages. My logs only show malformed header lines like this:
> 
> [Mon Apr 14 13:53:19 2003] [error] [client 42.1.9.28] malformed header
> from script. Bad header=  File "/home/amphora2/classic:
> /home/amphora2/classic/cgi/amphoralogo.py
> 
> In the past, using perl, this error came from not having a AddHandler
> line set up, but I added the .py to the handler line in httpd.conf.
> Anyone have any ideas?

I do not have personal experience using Python with Apache, but there 
was a recent Oreillynet article on the subject:

http://www.onlamp.com/pub/a/apache/2003/04/10/apacheandpython.html


Erik




More information about the gnhlug-discuss mailing list