logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Error Log isn't writing When Apache Shutdown with rotatelogs
Author
hibobby456



Joined: 25 Jul 2014
Posts: 3
Location: India

PostPosted: Fri 20 Nov '15 9:32    Post subject: Error Log isn't writing When Apache Shutdown with rotatelogs Reply with quote

Hi,

Appreciate some help here..

Error log isn't writing shutdown logs with rotatelog, but default Error log is writing the shutdown log.

Below I'm providing used ErrorLog directive, OS and Apache Versions.
ErrorLog "|$/local/apache/2.4.17/bin/rotatelogs /local/apache/logs/test.com/error_logs.2.4.%Y.%m.%d 86400"

Apache Version: 2.4.17
OS version: SunOS 5.10 sun4v sparc sun4v

Can anyone shed some light here. I've tried with Apache 2.4.16 version and tried this solution "https://bz.apache.org/bugzilla/show_bug.cgi?id=55072"


Thanks in Advance


Last edited by hibobby456 on Mon 14 Dec '15 13:23; edited 1 time in total
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 26 Nov '15 18:57    Post subject: Reply with quote

Is that the default error log in the httpd.conf or from a vhost?
Back to top
hibobby456



Joined: 25 Jul 2014
Posts: 3
Location: India

PostPosted: Fri 27 Nov '15 9:42    Post subject: Reply with quote

It's Main Error Log
Main ErrorLog: "|/local/apache/2.4.17/bin/rotatelogs /local/apache/logs/test.com/error_logs.2.4.%Y.%m.%d 86400"

Error log directive is not effective, when I specify it on vhosts.conf or ssl.conf location. In this case, error log writing to default location even the ErrorLog directive is commented.
Back to top


Reply to topic   Topic: Error Log isn't writing When Apache Shutdown with rotatelogs View previous topic :: View next topic
Post new topic   Forum Index -> Apache