Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    4

    Default lack details in CGI error log

    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. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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:

    use CGI::Carp qw(fatalsToBrowser);
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  4. #4
    Registered User
    Join Date
    Feb 2004
    Posts
    4

    Default thanks

    That's a good way. Thanks.

Similar Threads & Tags
Similar threads

  1. perl/cgi errors included in cPanel error log.
    By ckh in forum Feature Requests for cPanel/WHM
    Replies: 4
    Last Post: 02-25-2011, 01:04 PM
  2. /cgi/addon_csf.cgi and the formmail log
    By AndyB78 in forum E-mail Discussions
    Replies: 3
    Last Post: 02-08-2009, 12:00 PM
  3. make: *** [sapi/cgi/php-cgi] Error 1 on apache update
    By quicklyweb in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-27-2007, 08:32 AM
  4. Apache won't restart after update - log details
    By steved1956 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-12-2004, 04:34 PM
  5. PLease help a newbie. 500 Server error - specific details
    By redinsect in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-10-2004, 10:36 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube