LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-20-2006, 02:03 AM   #1
curos
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 72

Rep: Reputation: 15
rotate apache logs


I setup some virtual hosts with apache and put their log files in different locations, but the problem is that they don't rotate. How they I get them to rotate (i.e. properly)
 
Old 04-20-2006, 02:16 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
man logrotate
/httpd


Cheers,
Tink
 
Old 04-20-2006, 03:29 AM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I used logrotate for Apache as well, but if you're running an SSL web-site and your certs have a passphrase you can't restart Apache automatically from logrotate. If you don't restart, the log gets rotated but your output can end up going in the old log and the new one doesn't get the log data.

In this case I use the following:
Code:
CustomLog "|/usr/local/apache2/bin/rotatelogs /var/log/httpd/access.log 604800" combined
 
  


Reply


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
Rotate and mail access logs spiffytech Programming 2 02-10-2006 07:42 AM
About Apache Logs SiLiCoN Linux - Networking 1 05-26-2005 10:34 AM
rotate apache logs Berhanie Slackware 5 12-15-2004 09:36 PM
(also) Rotate Apache logs on-demand lothario Linux - Software 1 08-11-2004 07:21 PM
Apache logs - ???Linux logs??? mylo2003 Linux - General 3 08-07-2003 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:30 AM.

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