Hi everybody,

I finally found the solution. In Apache, the newer version with "event" threading has the side-effect of logging everything in the main server log file. It seems to be that the errors are sent to stderr and stderr can only be redirected to the main server error log file.

The workaround that was suggested to me in the mail-archives.apache.org was to recompile with the following switches (added to all the other switches I used):

--with-mpm=prefork --enable-cgi

Making sure I was using mod_cgi instead of mod_cgid in the modules section of httpd.conf

If you look in the Apache documents, it tells you that the error log is redirected to the vhost file if the line exist in the vhost section:

ErrorLog "/httpd/domainname/logs/error_log"

But that is not true if you use mod_cgid. Only true if you use mod_cgi.

Quite funny that you have to revert to older ways to get back your logs in the right place.

Hope this help other people with the same problem.

Thanks again to all the people who took the time to read or respond.


In reply to Re^4: Perl and Mysql logs by PierreForget
in thread Perl and Mysql logs by PierreForget

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.