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.

/usr/local/apache/domlogs/username..what for?

Discussion in 'EasyApache' started by sodapopinski, Nov 2, 2007.

  1. sodapopinski

    sodapopinski Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    I saw that into the /usr/local/apache/domlogs/ dir there's alot of home dir for each users which contains the same log files with /usr/local/apache/domlogs/domain.here.

    Thus we have 2 logs, /usr/local/apache/domlogs/domain.here and /usr/local/apache/domlogs/username/domain.here

    Anybody have the ida what is it's for and is it safe to delete them and just use /usr/local/apache/domlogs/domain.here ?

    Thanks alot.
     
  2. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,384
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I wouldn't delete them. I suspect that the username directory is used so users can access their log files via FTP, but thats just a guess.

    The log files aren't taking up twice the space. The log files in the username directory are just hardlinks to the log files in the domlogs directory. Run the command:

    ls -ali /usr/local/apache/domlogs/domain.com /usr/local/apache/domlogs/username/domain.com

    This will return a two line listing. The first number from the left from this output is the inode number for each of the files. These two numbers should be the same. This just means that the files are exactly the same file, they are both reading information from the same point on the disk. Instead of taking up twice the space, it is just two files reading information from the same part on the hard drive.
     
  3. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi Guys

    I have migrated a site to a new server and rsynced the /domlogs folder over.

    This has destroyed the hardlinks for the files

    cd /usr/local/apache/domlogs
    1234567 -rw-r----- 1 root xxclub 1448570 Nov 15 15:48 xxxxxxx/xxxxxxx.co.uk
    2359309 -rw-r----- 1 root xxclub 1447307 Nov 15 10:38 xxxxxxx.co.uk


    Do you know if they will become hardlinks again by cpanel automatically ?
    Maybe during the /scripts/upcp ?

    Or should I delete the ones in the dir and re-create them as hard links ?

    Regards
    Andy
     
  4. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,384
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Try running:

    /scripts/runweblogs <username>

    I seem to recall it saying something one time about the files not being linked properly and that it attempted to fix it.
     
Loading...

Share This Page