#1 stats.cgi script


The script does not show the pictures. When i look in
the error_log file of my apache server then i see the
following error:

Premature end of script headers: /home/httpd/cgi-
Premature end of script headers: /home/httpd/cgi-


  • Guillem Cantallops Ramis

    • assigned_to: nobody --> guillem
    • status: open --> open-remind
  • Guillem Cantallops Ramis

    Logged In: YES

    I guess this error is caused by some error in PNG generation
    which I don't handle properly inside these CGIs...

    It would be much nicer if I detected the error condition to
    generate user-friendly text/html error messages explaining
    what happened... I'll try to reproduce this in my system and
    isolate the real problem to fix the bug, or add proper error

    I'll also add more documentation in the next release,
    specially about CGIs. In 3.5beta release, CGIs are not very
    "admin-friendly" because I haven't documented their
    installation, use, etc. O:-)

    Thank you very much.

  • Guillem Cantallops Ramis

    Logged In: YES

    How did you access the scripts? Did you authenticate
    properly? All CGIs but stat_*.cgi look for a password and if
    you don't provide one (either as a parameter or as a cookie)
    they'll ask you for it. (It's plain text password!!! Using
    this authentication method in a non-secure network without
    SSL connections is a bit dangerous, I should put this in the
    documentation later...).

    Since stat_*.cgi just die and don't generate any output when
    you don't provide a password (or use the wrong password),
    you get the "premature end of script headers" in error_log.

    Could you try this...


    ... please? If it works, we've isolated the problem :-) and
    I'll fix it in the next release.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks