cgi script

G

golu

Hi,
i started learning cgi few days ago in python and everything went
fine until i started getting the follwing error
"
The server encountered an internal error and was unable to complete
your request. Either the server is overloaded or there was an error in
a CGI script.

If you think this is a server error, please contact the webmaster. "
i am using apache on xampp. plz help
 
C

Carl Banks

Hi,
i started learning cgi few days ago in python and everything went
fine  until i started getting the follwing error
"
The server encountered an internal error and was unable to complete
your request. Either the server is overloaded or there was an error in
a CGI script.


Your script has a syntax error. (You forgot a colon or something like
that.)

If you can, try to run the file directly from a Python interpreter to
see where the error is.


Carl Banks
 
P

Piet van Oostrum

golu said:
g> Hi,
g> i started learning cgi few days ago in python and everything went
g> fine until i started getting the follwing error
g> "
g> The server encountered an internal error and was unable to complete
g> your request. Either the server is overloaded or there was an error in
g> a CGI script.
g> If you think this is a server error, please contact the webmaster. "
g> i am using apache on xampp. plz help

Putting the following in your script might help as it will show the
exception trace in your browser (if it gets that far, that is).


import cgitb
cgitb.enable()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top