Web Hosting Talk







View Full Version : How to delete logs files ?


giza
06-30-2002, 11:31 PM
My customers have 1 website in my server : xyz.com, need to delete their LOGS file... to make more space. Please help me : how can I to delete their Logs files?
Thanks!

cbtrussell
07-01-2002, 12:08 AM
login as admin
su -
rm /var/log/maillog*
rm /var/log/httpd/access*
exit
exit

ljprevo
07-01-2002, 11:03 AM
Wouldn't that delete the logs for all the sites? :eek:

blacknight
07-01-2002, 06:51 PM
Sounds like it would. It might be a lot better to remove the sites's logs

If the logs are still being stored on the / partition you will run out of space soon. The easiest solution is to move all of your log files, and a lot of other stuff, over to the /home partition and then soft link them using ln -s (check any good *nix FAQ for more detail of the command parameters if you aren't sure)

jalonz
07-02-2002, 12:18 AM
"ode to logrotate.d"

files and directories
moving and copying

recursively within filesystems

while daemons running
locks and pids being misplaced

like a kid and a flamethrower,
in the summer Colorado forest.

a question better asked
log rotation, where art thou?

giza
07-03-2002, 06:46 AM
I just want to delete logs files on 1 site only! please how?

blacknight
07-03-2002, 09:56 AM
Originally posted by giza
I just want to delete logs files on 1 site only! please how?
If you are on a RAQ4 you should be able to access the logs via:
/home/sites/somesitename/users/logs

I'm not sure if simply deleting the files is the best solution, you might want to empty them instead or simply delete them and recreate empty ones.
I've never done it, so I don't know what the side-effects of deleting them are.

CitadelJon
07-04-2002, 04:41 AM
You should check your http.conf file and see where that site's logs are located and then delete the logs.

ljprevo
07-04-2002, 09:20 AM
Originally posted by blacknight

If you are on a RAQ4 you should be able to access the logs via:
/home/sites/somesitename/users/logs

I'm not sure if simply deleting the files is the best solution, you might want to empty them instead or simply delete them and recreate empty ones.
I've never done it, so I don't know what the side-effects of deleting them are.

That is:

/home/sites/somesitename/logs

;)

blacknight
07-04-2002, 05:20 PM
Originally posted by ljprevo


That is:

/home/sites/somesitename/logs

;)
Ooops! James is right - I'm going to sulk in a corner