LinuxQuestions.org
Help answer threads with 0 replies.
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 03-22-2005, 04:05 AM   #1
met007
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Rep: Reputation: 0
Apache error log


HI

I would like to know how to empty error log files in apache

Thanks
 
Old 03-22-2005, 04:29 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,581

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
Try this:
Code:
cp /dev/null /path/to/apache/logs/error_log
 
Old 03-22-2005, 05:07 AM   #3
met007
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Original Poster
Rep: Reputation: 0
But isn't that meant for copying?
 
Old 03-22-2005, 05:26 AM   #4
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
This should work. It will empty your error log.
Code:
cd <path to log>
:>error.log
-Prasanta
 
Old 03-22-2005, 11:44 AM   #5
met007
LQ Newbie
 
Registered: Jan 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks
 
  


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
Strange results in /var/log/apache/access.log subt13 Linux - Security 2 08-03-2004 02:21 PM
apache error log allan_y Linux - Software 2 07-24-2004 10:31 AM
Apache mailing log error esteeven Linux - Software 1 04-16-2004 04:02 AM
apache error log entries synaptical Linux - Security 3 01-26-2004 02:28 AM
apache 1 error log bluestorm Linux - Software 1 12-05-2003 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration