The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Duplicate Apache Logs?? WHY??

Discussion in 'EasyApache' started by Sir William, Mar 21, 2009.

  1. Sir William

    Sir William Member

    Jul 24, 2006
    Likes Received:
    Trophy Points:
    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. sparek-3

    sparek-3 Well-Known Member

    Aug 10, 2002
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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.

Share This Page