This is a discussion on CGI problem within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hello, I'm new to Apache. I tried to call a Python cgi script and got the following message: Internal ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I'm new to Apache. I tried to call a Python cgi script and got the following message: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, nlbsilva@yahoo.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. -------------------------------------------------------------------------------- I have python path in the script's 1st line and the script in the cgi-bin folder, where the documentation says to put it. my HTML code is: <form method=GET action="http://localhost/cgi-bin/test3.cgi"> Thank you, Norma. |
|
|||
|
nlbsilva@yahoo.com (Normitcha) wrote:
[Internal Server Error] > More information about this error may be available in the server error > log. What's in the server error log? Please let us know. > I have python path in the script's 1st line and the script in the > cgi-bin folder, where the documentation says to put it. > > my HTML code is: <form method=GET > action="http://localhost/cgi-bin/test3.cgi"> ScriptInterpreterSource registry ScriptAlias /cgi-bin/ "/www/cgi-bin/" AddHandler cgi-script .py #!python print "Content-Type: text/plain\n" print "hello world" This works fine - doesn't it? Assuming anything.py instead of .cgi. If it doesn't work get netcat and play webserver with it. C:\>nc -l -p 4000[ENTER] Then click the button at your HTML-Document and post the output. -- Johannes Lichtenberger · http://www.nabooisland.com |
|
|||
|
Johannes Lichtenberger <auch-ich-m@g-kein-spam.com> wrote:
> nlbsilva@yahoo.com (Normitcha) wrote: > > [Internal Server Error] > >> More information about this error may be available in the server error >> log. > > What's in the server error log? Please let us know. > >> I have python path in the script's 1st line and the script in the >> cgi-bin folder, where the documentation says to put it. >> >> my HTML code is: <form method=GET >> action="http://localhost/cgi-bin/test3.cgi"> Well, if you try to play webserver with netcat (on Port 4000) it should be <form method=GET action="http://localhost:4000/cgi-bin/test3.cgi"> > ScriptInterpreterSource registry > ScriptAlias /cgi-bin/ "/www/cgi-bin/" > AddHandler cgi-script .py > > #!python > print "Content-Type: text/plain\n" > print "hello world" > > This works fine - doesn't it? Assuming anything.py instead of .cgi. > If it doesn't work get netcat and play webserver with it. > > C:\>nc -l -p 4000[ENTER] > > Then click the button at your HTML-Document and post the output. -- Johannes Lichtenberger · http://www.nabooisland.com |
| Thread Tools | |
| Display Modes | |
|
|