Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

lack details in CGI error log

Discussion in 'General Discussion' started by anstrom, Feb 29, 2004.

  1. anstrom

    anstrom Registered

    Joined:
    Feb 29, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    When I was debugging my problematic Perl CGI scrip, I could only see a line of simple error message from Cpanel error log, like:

    [Sun Feb 29 01:51:32 2004] [error] [client 24.30.120.238] Premature end of script headers: /home/pku/public_html/cgi-bin/puaasc/reg.cgi

    What I want to see is more details of the error, like which line and what kind of error my script has, similar to the Apache error log file. Where I can I find such information in Cpanel please?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    22
    Trophy Points:
    463
    Location:
    Go on, have a guess
    What you're seeing is the apache error log (or at least your domains part of it), and you're unlikely to see more. For better results stick this line in the perl script directly below the first line:

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    I automatically put that line in all my perl scripts while working on them. It makes it so much easier to debug a script. When you have it working, either remove the line, or just comment it out.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. anstrom

    anstrom Registered

    Joined:
    Feb 29, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    thanks

    That's a good way. Thanks.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice