Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Duplicated logfile?

Discussion in 'General Discussion' started by inalto, May 30, 2015.

  1. inalto

    inalto Member

    Joined:
    Mar 27, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    151
    Hello,
    doing maintenance on my servers i have discovered that apache logfiles seems duplicated.

    example:

    in /etc/httpd/domlogs/

    ls -asl auserdomain.org
    952K -rw-r----- 2 root auser 946K 30 mag 14:45 auserdomain.org

    and in /etc/httpd/domlogs/auser
    ls -asl
    4,0K drwxr-x--- 2 root auser 4,0K 30 mag 14:07 .
    36K drwx--x--x 36 root wheel 36K 30 mag 14:41 ..
    952K -rw-r----- 2 root auser 946K 30 mag 14:45 auserdomain.org

    and is not a link, it's a duplicate.

    Why this happens? No trace of the second one in the http.conf.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It's not a duplicate file, but a hard link. You can verify the same inode is shared with the use of the "ls -ali" command. EX:

    Code:
    ls -ali /usr/local/apache/domlogs/cptest01.com
    ls -ali /usr/local/apache/domlogs/cptest01/cptest01.com
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice