Results 1 to 6 of 6
  1. #1

    domlogs 2 copies?

    This I noticed after updating the cpanel/webhost manager to v 11.x

    There are not 2 copies of the access log, both updating live, the first one which was always there is at

    /usr/local/apache/domlogs/account.com

    and the second one at:

    /usr/local/apache/domlogs/account/account.com

    Does anyone know why there is a need to keep and update 2 log files and how I can go back 1 access log? Thank you.

  2. #2
    Join Date
    May 2006
    Location
    EU & USA
    Posts
    3,684
    guess its april fools.. but ever did hear of inodes ?

  3. #3
    No, I don't know what are inodes. But /usr/local/apache/domlogs/account/account.com don't appear to be a symbolic link or anything. Looks like a regular folder with access log in it being updated live.

    so is it normal? and what is the use of it? Thanks.

  4. #4
    Join Date
    May 2006
    Location
    EU & USA
    Posts
    3,684
    Try a ls -i on both files and you will see the same number appear, meaning they have the same inode, so they are the same file. An update on this inode will thus change the two files at the same time (if you can really speak of two files)

    user@server [/usr/local/apache/domlogs]# ls -i yourdomain.com
    316698 yourdomain.com

    user@server [/usr/local/apache/domlogs/account]# ls -i yourdomain.com
    316698 yourdomain.com

  5. #5
    Join Date
    May 2006
    Location
    EU & USA
    Posts
    3,684
    For your understanding; you might want to read this:

    http://wiki.linuxquestions.org/wiki/Ln#Finding

  6. #6
    Tired ls -i and yes it returns the same number. Thank you 040Hosting.

Posting Permissions

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