Hello,
I am running a shared server with litespeed. It was working fine till this march. However, now the AWSTATS are not updated properly. It is not updated properly also when i try to update manually it is giving huge errors.
++++++++
# /scripts/runweblogs xxxxxxx
Log checker loaded ok..
==> cPanel Log Daemon version 25.0
==> Loaded RRDs: version 1.4004
Processing xxxxxxx...
Run Logs domain: xxxxxxx.com.sg BW Limit: 52428800000 Domains: [extranet.xxxxxxx.com mail.xxxxxxx.com mail1.xxxxxxx.com ssl.xxxxxxx.com ssl1.xxxxxxx.com ssl2.xxxxxxx.com vpn2463.xxxxxxx.com webmail.xxxxxxx.com.sg xxxxxxx.com wiselypc.com.sg promis.xxxxxxx.com mail2.xxxxxxx.com]
[2012-05-22 17:32:03 +0800] Process bandwidth for xxxxxxx
[2012-05-22 17:32:04 +0800] Processing exim stats for xxxxxxx....
[2012-05-22 17:32:04 +0800] ...Done
[2012-05-22 17:32:26 +0800] Disk Usage for xxxxxxx on /dev/mapper/VolGroup00-LogVol00 (502908/5120000)
[2012-05-22 17:32:26 +0800] WEBLANG english
[2012-05-22 17:32:26 +0800] Archive Status: 1
[2012-05-22 17:32:26 +0800] About to fork for xxxxxxx [ALL DOMAINS: extranet.xxxxxxx.com, mail.xxxxxxx.com, mail1.xxxxxxx.com, ssl.xxxxxxx.com, ssl1.xxxxxxx.com, ssl2.xxxxxxx.com, vpn2463.xxxxxxx.com, webmail.xxxxxxx.com.sg, xxxxxxx.com, wiselypc.com.sg, promis.xxxxxxx.com, mail2.xxxxxxx.com, xxxxxxx.com.sg]
[2012-05-22 17:32:26 +0800] Create/Update database for config "/home/xxxxxxx/tmp/awstats/awstats.xxxxxxx.com.sg.conf" by AWStats version 7.0 (build 1.971)
[2012-05-22 17:32:26 +0800] From data in log file "/usr/local/apache/domlogs/xxxxxxx.com.sg.bkup"...
[2012-05-22 17:32:26 +0800] Error: Couldn't open server log file "/usr/local/apache/domlogs/xxxxxxx.com.sg.bkup" : Permission denied
[2012-05-22 17:32:26 +0800] Setup ('/home/xxxxxxx/tmp/awstats/awstats.xxxxxxx.com.sg.conf' file, web server or permissions) may be wrong.
[2012-05-22 17:32:26 +0800] Check config file, permissions and AWStats documentation (in 'docs' directory).
Complete
++++++++.
I found the root cause of this issue. The apache domlogs are running with nobody:nobody permission. It should be "root:username".
++++++++
root@host [/usr/local/apache]# ll |grep domlogs/
drwx--x--x 404 root wheel 516096 May 23 11:40 domlogs/
root@host [/usr/local/apache]#
User account:
-rw-r----- 2 nobody nobody 4450 May 23 11:15 xxxxxxx.com
-rw-r--r-- 1 nobody nobody 229 May 23 11:15 xxxxxxx.com-bytes_log
-rw-r--r-- 1 root root 1 Feb 20 2010 xxxxxxx.com-bytes_log.offset
++++++++
Could you please let me know how to change this or fix this issue?
I am running a shared server with litespeed. It was working fine till this march. However, now the AWSTATS are not updated properly. It is not updated properly also when i try to update manually it is giving huge errors.
++++++++
# /scripts/runweblogs xxxxxxx
Log checker loaded ok..
==> cPanel Log Daemon version 25.0
==> Loaded RRDs: version 1.4004
Processing xxxxxxx...
Run Logs domain: xxxxxxx.com.sg BW Limit: 52428800000 Domains: [extranet.xxxxxxx.com mail.xxxxxxx.com mail1.xxxxxxx.com ssl.xxxxxxx.com ssl1.xxxxxxx.com ssl2.xxxxxxx.com vpn2463.xxxxxxx.com webmail.xxxxxxx.com.sg xxxxxxx.com wiselypc.com.sg promis.xxxxxxx.com mail2.xxxxxxx.com]
[2012-05-22 17:32:03 +0800] Process bandwidth for xxxxxxx
[2012-05-22 17:32:04 +0800] Processing exim stats for xxxxxxx....
[2012-05-22 17:32:04 +0800] ...Done
[2012-05-22 17:32:26 +0800] Disk Usage for xxxxxxx on /dev/mapper/VolGroup00-LogVol00 (502908/5120000)
[2012-05-22 17:32:26 +0800] WEBLANG english
[2012-05-22 17:32:26 +0800] Archive Status: 1
[2012-05-22 17:32:26 +0800] About to fork for xxxxxxx [ALL DOMAINS: extranet.xxxxxxx.com, mail.xxxxxxx.com, mail1.xxxxxxx.com, ssl.xxxxxxx.com, ssl1.xxxxxxx.com, ssl2.xxxxxxx.com, vpn2463.xxxxxxx.com, webmail.xxxxxxx.com.sg, xxxxxxx.com, wiselypc.com.sg, promis.xxxxxxx.com, mail2.xxxxxxx.com, xxxxxxx.com.sg]
[2012-05-22 17:32:26 +0800] Create/Update database for config "/home/xxxxxxx/tmp/awstats/awstats.xxxxxxx.com.sg.conf" by AWStats version 7.0 (build 1.971)
[2012-05-22 17:32:26 +0800] From data in log file "/usr/local/apache/domlogs/xxxxxxx.com.sg.bkup"...
[2012-05-22 17:32:26 +0800] Error: Couldn't open server log file "/usr/local/apache/domlogs/xxxxxxx.com.sg.bkup" : Permission denied
[2012-05-22 17:32:26 +0800] Setup ('/home/xxxxxxx/tmp/awstats/awstats.xxxxxxx.com.sg.conf' file, web server or permissions) may be wrong.
[2012-05-22 17:32:26 +0800] Check config file, permissions and AWStats documentation (in 'docs' directory).
Complete
++++++++.
I found the root cause of this issue. The apache domlogs are running with nobody:nobody permission. It should be "root:username".
++++++++
root@host [/usr/local/apache]# ll |grep domlogs/
drwx--x--x 404 root wheel 516096 May 23 11:40 domlogs/
root@host [/usr/local/apache]#
User account:
-rw-r----- 2 nobody nobody 4450 May 23 11:15 xxxxxxx.com
-rw-r--r-- 1 nobody nobody 229 May 23 11:15 xxxxxxx.com-bytes_log
-rw-r--r-- 1 root root 1 Feb 20 2010 xxxxxxx.com-bytes_log.offset
++++++++
Could you please let me know how to change this or fix this issue?