cgi server problem . need help .

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PantieZ
    Confirmed User
    • Jan 2001
    • 1441

    #1

    cgi server problem . need help .

    Hi fellas ,

    I have a cgi problem with my server (RedHat , Apache 2).
    When I start a cgi script I only get a internal server error 500 .
    My apache logfiles show:
    premature end of script headers .



    please help me
  • - Jesus Christ -
    Confirmed User
    • Mar 2003
    • 7197

    #2
    Post it there
    http://www.webhostingtalk.com/forumd....php?forumid=5

    Amen

    Comment

    • boldy
      Macdaddy coder
      • Feb 2002
      • 2806

      #3
      If you dont get anymore errors in the error.log file, you probably forgot to sent the header :

      print CGI::header();

      otherwise check the first line in case of a perl file. it should point to your perl binary eg : #!/usr/bin/perl

      make sure there's no CRLF on that line

      Hope this helps

      B.
      MacDaddy Coder.

      Comment

      • liquidmoe
        Confirmed User
        • Mar 2002
        • 4994

        #4
        if you arent using CGI.pm add a

        print "Content-Type: text/html\n\n";

        to the top of your script this way if any errors generate output you can see them on the web.

        also running with CGI and errors enabled helps to display errors to the web.

        Take Luck!

        Comment

        • Volantt
          Confirmed User
          • Nov 2003
          • 745

          #5
          Switch to PHP... lol

          I still love to program in PERL though, it is a very robust language.

          V
          "Only the dead have seen the end of war." - Plato
          "In the abscence of orders, go find something and kill it." - Erwin Rommel
          "A man's worth is no greater then the worth of his ambitions." - Marcus Aurelius

          Comment

          Working...