Re: Apache restarting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On November 15, 2011 15:34 , =?utf-8?B?w5h5dmluZCBMb2RlIC0gRm9ydW1z?= <forums@xxxxxxx> wrote:
Have you configured log rotation? When rotating logs, it is common to
gracefully restart apache to write to new log files.

I found the answer in /etc/logrotate.d/apache2

/etc/init.d/apache2 reload is executed when logs are rotated.

I use cronolog because it avoids the need to signal httpd. cronolog also has a number of other nice features, including running as a different user id than the web server (so a rogue CGI cannot modify the log files), flexible file naming, and automatic symbolic linking. (I'm using version 1.7.0 beta with the jumbo patch).

http://cronolog.org/

--
  Mark Montague
  mark@xxxxxxxxxxx


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux