update
The script is index.cgi, copied by the install.sh script. the script is okay, i can run it in a virtual debian with similar settings ( apache, perl version )
Checked apache logs and found this line only nothing else.
Tue Sep 29 08:55:54 2015] [info] [client 10.10.10.2] Connection closed + to child 3 with standard shutdown (server my.test.gestio.hu:443) [Tue Sep 29 08:55:56 2015] [info] [client 10.10.10.2] Connection to ch +ild 4 established (server my.test.gestio.hu:443) [Tue Sep 29 08:55:56 2015] [info] Seeding PRNG with 656 bytes of entro +py [Tue Sep 29 08:55:56 2015] [info] Initial (No.1) HTTPS request receive +d for child 4 (server my.test.gestio.hu:443) [Tue Sep 29 08:55:56 2015] [error] [client 10.10.10.2] Premature end o +f script headers: index.cgi [Tue Sep 29 08:55:56 2015] [info] [client 10.10.10.2] Connection close +d to child 4 with standard shutdown (server my.test.gestio.hu:443) [Tue Sep 29 09:43:56 2015] [info] [client 10.10.10.2] Connection to ch +ild 5 established (server my.test.gestio.hu:443) [Tue Sep 29 09:43:56 2015] [info] Seeding PRNG with 656 bytes of entro +py [Tue Sep 29 09:43:56 2015] [info] Initial (No.1) HTTPS request receive +d for child 5 (server my.test.gestio.hu:443) [Tue Sep 29 09:43:56 2015] [info] [client 10.10.10.2] Connection close +d to child 5 with standard shutdown (server my.test.gestio.hu:443) [Tue Sep 29 09:44:00 2015] [info] [client 10.10.10.2] Connection to ch +ild 9 established (server my.test.gestio.hu:443) [Tue Sep 29 09:44:00 2015] [info] Seeding PRNG with 656 bytes of entro +py [Tue Sep 29 09:44:05 2015] [info] Initial (No.1) HTTPS request receive +d for child 9 (server my.test.gestio.hu:443) [Tue Sep 29 09:44:05 2015] [error] [client 10.10.10.2] Premature end o +f script headers: index.cgi [Tue Sep 29 09:44:05 2015] [info] [client 10.10.10.2] Connection close +d to child 9 with standard shutdown (server my.test.gestio.hu:443)
I try to run another .cgi perl script, but get the same error always.
i do not use fasrcgi or suexec, i have read they could made similar errors.
I have a goog running system as well with this script, so i just need to figure out the difference what cause this error.

In reply to Re^2: Premature end of script headers by gszabo
in thread Premature end of script headers by gszabo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.