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

Notices


Reply
  Search this Thread
Old 12-15-2011, 10:25 AM   #1
jayakumar01
Member
 
Registered: Nov 2011
Posts: 106

Rep: Reputation: Disabled
apache startup error after deleting up apache log files


Hi
i Stopped down the apache server then i deleted of all log of apache rm -rf /etc/httpd/logs/*.But when i start up the service its throwing up error . Once again i moved out the logs to /etc/httpd/logs directory it gets start up ..I want to delete of my apache logs everyday .can any guys help me in these issue ..

Last edited by jayakumar01; 12-15-2011 at 10:26 AM.
 
Old 12-15-2011, 11:10 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Quote:
i Stopped down the apache server then i deleted of all log of apache rm -rf /etc/httpd/logs/*
Are you sure about the logs location?
It should be in /var/log/httpd.
Anyway, what was the error you got? Unless there were subdirectories under the above path, apache can recreate the logfiles from scratch, so there should be no problem.

Regards
 
Old 12-15-2011, 11:13 AM   #3
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
Make sure the user that Apache runs under has write permissions on the log directory
 
  


Reply



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
reading apache log files fiona333 Linux - Newbie 1 06-28-2007 01:11 PM
Apache log files ikarus Linux - Server 2 04-21-2007 09:52 PM
Apache Browser Log Files soulestream Linux - Software 1 12-14-2005 02:59 AM
multiple log files in apache Red Squirrel Linux - Software 1 09-27-2005 12:42 AM
Question on Apache Log Files JLDixon Linux - Software 1 10-12-2003 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:32 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