Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > cgi script

Reply
Thread Tools

cgi script

 
 
golu
Guest
Posts: n/a
 
      08-02-2009
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
 
Reply With Quote
 
 
 
 
Carl Banks
Guest
Posts: n/a
 
      08-02-2009
On Aug 1, 11:11*pm, golu <(E-Mail Removed)> wrote:
> 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
 
Reply With Quote
 
 
 
 
Piet van Oostrum
Guest
Posts: n/a
 
      08-02-2009
>>>>> golu <(E-Mail Removed)> (g) wrote:

>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()

--
Piet van Oostrum <(E-Mail Removed)>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert exe file of cgi script into .cgi extension. Muzammil C++ 1 08-28-2008 07:50 PM
what's wrong calling a Perl/CGI script in Perl/CGI script under Tomcat server? kath Perl Misc 4 04-09-2007 09:21 PM
cgi relay for python cgi script Amir Michail Python 7 10-04-2005 07:11 PM
Python-cgi or Perl-cgi script doubt praba kar Python 1 07-30-2005 08:25 AM
cgi = CGI.new causes the script to hang Gavri Savio Fernandez Ruby 2 12-01-2003 05:37 AM



Advertisments