cgi script

Discussion in 'Python' started by golu, Aug 2, 2009.

  1. golu

    golu Guest

    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
     
    golu, Aug 2, 2009
    #1
    1. Advertising

  2. golu

    Carl Banks Guest

    On Aug 1, 11:11 pm, golu <> 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
     
    Carl Banks, Aug 2, 2009
    #2
    1. Advertising

  3. >>>>> golu <> (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 <>
    URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
    Private email:
     
    Piet van Oostrum, Aug 2, 2009
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. praba kar

    Python-cgi or Perl-cgi script doubt

    praba kar, Jul 30, 2005, in forum: Python
    Replies:
    1
    Views:
    803
    Michael Sparks
    Jul 30, 2005
  2. Amir  Michail

    cgi relay for python cgi script

    Amir Michail, Oct 4, 2005, in forum: Python
    Replies:
    7
    Views:
    488
    Michael Ekstrand
    Oct 4, 2005
  3. Muzammil
    Replies:
    1
    Views:
    1,274
    red floyd
    Aug 28, 2008
  4. Gavri Savio Fernandez

    cgi = CGI.new causes the script to hang

    Gavri Savio Fernandez, Nov 30, 2003, in forum: Ruby
    Replies:
    2
    Views:
    278
    Ara.T.Howard
    Dec 1, 2003
  5. kath
    Replies:
    4
    Views:
    805
    J. Gleixner
    Apr 9, 2007
Loading...

Share This Page