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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

logs location changed?

Discussion in 'General Discussion' started by sahostking, Dec 5, 2016.

Tags:
  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    314
    Likes Received:
    2
    Trophy Points:
    68
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Hi

    Am I right in saying that there is no more access_logs folder but rather a logs folder within /home/[useraccount]/ ?

    I see on new servers we have /home/user/logs now and not /home/user/access_logs anymore.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @sahostking,

    Access-logs should be a symbolic link within the /home/$username/ directory:

    Code:
    lrwxrwxrwx   1 user123 user123      34 Dec  4 16:51 access-logs -> /etc/apache2/logs/domlogs/user123
    It's created automatically the first time logs are generated for the account via cpanellogd. You can process logs manually for an account via the following command to verify this is happening:

    Code:
    /scripts/runweblogs $username
    Thank you.
     
  3. lehels

    lehels Well-Known Member

    Joined:
    Jul 10, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    156
    @cPanelMichael - indeed, but we are experiencing some issues after upgrading to cPanel 60 - all access-logs symlinks have disappeared and running /scripts/runweblogs shows the following:

    Code:
    root@server [~] # /scripts/runweblogs username
    Log checker loaded ok..
    ==> cPanel Log Daemon version 26.0
    [2016-12-23 03:00:36 -0500] [sepxferlog]
    [2016-12-23 03:00:36 -0500] [sepxferlog] complete
    [2016-12-23 03:00:36 -0500] Processing username...
    [2016-12-23 03:00:36 -0500] Run Logs domain: domainname.com BW Limit: unlimited Domains: []
    [2016-12-23 03:00:36 -0500] Process bandwidth for username
    [2016-12-23 03:00:36 -0500] Could not set logs symlink: Could not symlink /usr/local/apache/domlogs/username to /home/username/
    access-logs
    [2016-12-23 03:00:36 -0500] Disk Usage for username on /dev/md2 (137304/0)
    [2016-12-23 03:00:36 -0500] Archive Status for username: 0
    [2016-12-23 03:00:36 -0500] Processing username, fork() required to drop privs with (domains:1 domains)
    [2016-12-23 03:00:36 -0500] [setuid] username (uid=652,gid=647)
    [2016-12-23 03:00:36 -0500] Complete
    
    root@server [~]# cat /usr/local/cpanel/version  
    11.60.0.28
    
    Which is quite weird, as manually I can set the symlink up without issues.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @lehels,

    Could you verify if CloudLinux is installed on your system? If so, could you use the "uname -r" command to verify if the most recent kernel is installed? The latest published CloudLinux kernel includes the following resolution that could relate to the issue you have reported:

    CKSIX-83: allowing user to create symlinks to files/dirs owned by user's group;

    Thank you.
     
Loading...

Share This Page