Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-29-2006, 08:55 AM   #1
LQ Newbie
Registered: May 2006
Posts: 6

Rep: Reputation: 2
Unhappy Apache Rotates Logs During Restart - How do I STOP IT?

Summary: When restarting Apache 2 with "service httpd stop" and then "apachectl graceful" (Because of SSL certificate) the log files, example: access_log becomes access_log.1, and a new access_log file is created, empty.

I only want log files appended to, not rotated. The log analyzers I'm trying to use require a specific log file to analyze. Each time I cycle the server, the data is moved. This renders the web analyzers useless.

I cannot locate anything in apachectl or in the http.conf that would determine this behavior.

Does anyone know if its possible to allow a log file to grow and not be rotated - even when the server is cycled?

Thank You very much in advance!
Jason P Sage

Last edited by jasonpsage; 10-29-2006 at 08:56 AM.
Old 10-29-2006, 12:46 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 245Reputation: 245Reputation: 245
Why append, just stop logrotate from rotating the apache logs.
Old 10-30-2006, 07:23 AM   #3
LQ Newbie
Registered: May 2006
Posts: 6

Original Poster
Rep: Reputation: 2
I don not know how to make it stop - that's why I'm asking...

Thank You, Tricky Kid, but you see, I do not know how to make it stop. That is why I posted a question.

When I cycle the server, it rotates the logs. Is there something I can disable named LogRotate? Is that what you are saying?

The behavior that would result from successfully doing what you said would give the append functionality I want. By appending, I mean that a particular log file will grow - because each new entry is appended to the existing file. In other words - I want my log file to grow, and not be rotated. I can't perform analysis with web log analyzer programs and things if they get rotated.

Thanx in advance for any suggestions.
Jason P Sage

Last edited by jasonpsage; 10-30-2006 at 07:35 AM.


apache, httpdconf, logs, rotate, service, stop

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logs stop working redice Fedora 3 04-24-2006 10:49 AM
4-6 logs from kernel Per SECOND! How to stop? m15a4 Linux - General 7 02-01-2006 06:05 AM
how can i start, stop or restart Paxmaster Slackware 3 11-27-2004 01:31 PM
Mouse, how to stop and restart driver Crasherz Linux - Newbie 10 11-20-2003 08:53 PM
Start Stop Restart Services Sifvion Slackware 6 09-14-2002 03:13 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration