Results 1 to 10 of 10
  1. #1
    Join Date
    May 2001
    Location
    .
    Posts
    192

    How to delete logs files ?

    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!

  2. #2
    Join Date
    Aug 2001
    Location
    Atlanta
    Posts
    1,167
    login as admin
    su -
    rm /var/log/maillog*
    rm /var/log/httpd/access*
    exit
    exit

  3. #3
    Wouldn't that delete the logs for all the sites?
    Last edited by ljprevo; 07-03-2002 at 09:10 AM.
    L. James Prevo - President/Owner
    Prevo Network, LLC - http://www.prevo.net
    Est. 1999 - Month to Month Billing!!

  4. #4
    Join Date
    Mar 2001
    Location
    Ireland
    Posts
    1,354
    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)
    Blacknight
    ICANN accredited domain registrar

  5. #5
    "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?

  6. #6
    Join Date
    May 2001
    Location
    .
    Posts
    192
    I just want to delete logs files on 1 site only! please how?

  7. #7
    Join Date
    Mar 2001
    Location
    Ireland
    Posts
    1,354
    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.
    Blacknight
    ICANN accredited domain registrar

  8. #8
    You should check your http.conf file and see where that site's logs are located and then delete the logs.

  9. #9
    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

    L. James Prevo - President/Owner
    Prevo Network, LLC - http://www.prevo.net
    Est. 1999 - Month to Month Billing!!

  10. #10
    Join Date
    Mar 2001
    Location
    Ireland
    Posts
    1,354
    Originally posted by ljprevo


    That is:

    /home/sites/somesitename/logs

    Ooops! James is right - I'm going to sulk in a corner
    Blacknight
    ICANN accredited domain registrar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •