LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-18-2012, 05:52 AM   #1
amolmistry
Member
 
Registered: Nov 2008
Posts: 45

Rep: Reputation: 0
Limit apache error_log


Hello,

Can we limit error_log to specific size (Say 100 MB) in Apache.

Current version Apache/2.2.15.

Thanking you.
 
Old 10-18-2012, 05:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
if your logs are being piped through rotatelogs, then that's the M option... http://httpd.apache.org/docs/2.2/pro...otatelogs.html
 
1 members found this post helpful.
Old 10-18-2012, 06:20 AM   #3
amolmistry
Member
 
Registered: Nov 2008
Posts: 45

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
if your logs are being piped through rotatelogs, then that's the M option... http://httpd.apache.org/docs/2.2/pro...otatelogs.html
Thanks acid_kewpie, for useful information.

Further to this do you have any idea that how to limit error_log for individual domain?

In our case, we are using cPanel and error_log for all domains are getting stored in their individual folders separately.

Thanking you.
 
Old 10-18-2012, 06:27 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
if they're going to their own unique files then the same will apply. Otherwise, well... that doesn't really make sense, so can't be the case.
 
Old 10-18-2012, 07:17 AM   #5
amolmistry
Member
 
Registered: Nov 2008
Posts: 45

Original Poster
Rep: Reputation: 0
I'll take care further, thanks again acid_kewpie for your valuable tips.
 
  


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
Apache /public_html ? error_log maas187 Linux - Server 12 02-14-2009 01:20 AM
apache error_log [] file does not exist wanghao Linux - Server 2 11-29-2007 09:27 AM
apache error_log always full Suinatsa Linux - Software 1 07-21-2006 03:44 AM
Apache error_log Sapient Linux - Software 1 12-31-2005 08:10 PM
a better php/apache error_log joe.biz Linux - Software 1 10-27-2005 06:17 PM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration