Results 1 to 6 of 6
Thread: domlogs 2 copies?
-
04-01-2008, 10:37 AM #1Newbie
- Join Date
- Apr 2004
- Posts
- 20
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.
-
04-01-2008, 11:57 AM #2Web Hosting Master
- Join Date
- May 2006
- Location
- EU & USA
- Posts
- 3,684
guess its april fools.. but ever did hear of inodes ?
-
04-01-2008, 12:15 PM #3Newbie
- Join Date
- Apr 2004
- Posts
- 20
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.
-
04-01-2008, 02:19 PM #4Web Hosting Master
- 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
-
04-01-2008, 02:47 PM #5Web Hosting Master
- 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
-
04-02-2008, 09:37 AM #6Newbie
- Join Date
- Apr 2004
- Posts
- 20
Tired ls -i and yes it returns the same number. Thank you 040Hosting.