CGI debugging - 500 Internal Server Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • saranjegan
    New Member
    • Feb 2007
    • 50

    CGI debugging - 500 Internal Server Error

    Hello,

    Am running a CGI script programmed in C in my apache server , the code is throwing some sorts of error with 500 internal server error , from error log i came to know its premature end of script headers when am supposed to troubleshoot it with various resources such as checking the script headers i can' t able to overcome it , i faced same problem with some example program in books too(even hello world), so i made the same program in perl surprisingly it works fine , what might be the reason ?
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    500 errors are server related and I doubt they are caused by your script. I would investigate as to whether your web server or even your firewall is allowing you access. If you go to a website and get a 500 error than that typically means that someone on the server side has some work to do.

    Regards,

    Jeff

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      I would ask C questions in the C forum, not the perl forum.

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        He he, I didn't even notice. I just read the word CGI and went from there.

        Regards,

        Jeff

        Comment

        • miller
          Recognized Expert Top Contributor
          • Oct 2006
          • 1086

          #5
          Moving thread from the Perl Forum to the C Forum. The Apache Forum might be a better destination yet.

          - MODERATOR

          Comment

          • saranjegan
            New Member
            • Feb 2007
            • 50

            #6
            Originally posted by miller
            Moving thread from the Perl Forum to the C Forum. The Apache Forum might be a better destination yet.

            - MODERATOR
            I think this is not a perl question , Its more related to CGI program in C not in perl

            Comment

            Working...