Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2006
    Posts
    8

    Default Duplicate Apache Logs?? WHY??

    I'm running the latest Release on CentOS 5 64-bit. I just realized that all the apache logs are duplicated in /usr/local/apache/domlogs/ and /usr/local/apache/domlogs/username/ Why is this? It's a waste of space, resources, etc. as every apache access required double the amount of time to log that it really has to. I realize the username folders are aliased from each users home folder, so why have all the files in the domlogs folder? Can somebody explain this?

  2. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default

    They aren't really duplicates, they are just hard-links.

    If you stat each file or do an ls -ali of each file you will see that they share the inode. The inode refers to what is actually taking up disk space and since they are both linked to the same inode, the disk space is only being used once. There is no double disk space being used.

    As for why this setup is in place, it is likely to allow the logs user to FTP into the server and see all of the apache logs associated with their account. I'm not really sure what all of the reasons may be.

Similar Threads & Tags
Similar threads

  1. Duplicate Apache Domlogs
    By orty in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-25-2009, 04:27 PM
  2. problem with duplicate apache logs (domlogs) after cpanel 11 upgrade
    By vissa in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-01-2007, 02:56 AM
  3. duplicate apache logs
    By forlinuxsupport in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 05-25-2007, 10:56 AM
  4. Configure Apache to do Duplicate Logging
    By Sash in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-26-2006, 08:12 PM
  5. Apache Logs
    By bert in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-12-2001, 03:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube