[Tutor] Apache, CGI configuration
Steve Spicklemire
steve@estel.uindy.edu
Wed, 7 Jul 1999 08:31:58 -0500 (EST)
Hi Michael,
Have you looked at the apach error_log file for clues? More than
likely this is a problem with the 'Content-Type' header. If possible,
try to run your cgi-script stand-alone and see that it produces the
correct header. If that doesn't work... maybe post the code?
-steve
>>>>> "Michael" == Michael Ang <michael@mediamanager.com.sg> writes:
Michael> Hi, I'm having problem running cgi in one of my
Michael> Linux-Apache server, I follow exactly what needed to be
Michael> done given in this site
Michael> (http://starship.skyport.net/crew/davem/cgifaq/faqw.cgi?req=index). The
Michael> web server always respond as <<<< The server encountered
Michael> an internal error or misconfiguration and was unable to
Michael> complete your request.
Michael> Please contact the server administrator,
Michael> michael@kids.monja.com.sg and inform them of the time the
Michael> error occurred, and anything you might have done that may
Michael> have caused the error.
Michael> Premature end of script headers:
Michael> /usr/local/apache/share/cgi-bin/Hello.py
>>>>
Michael> (Hello.py is also taken from the help site)
Michael> Is it neccessary to set PYTHONPATH in Linux and how and
Michael> where should I set it. Anything that I've missed out?
Michael> Thanks in advance
Michael> Michael
Michael> _______________________________________________ Tutor
Michael> maillist - Tutor@python.org
Michael> http://www.python.org/mailman/listinfo/tutor