大网数据广告活动
服务器运维问答

how to get rid of awstat www-data daemon?

· 52CE 我爱测

I have successfully installed awstats on my webserver. I have created a cron job that runs as root every third hour. And it works perfectly, but i keep receiving "mails" every 10 minutes saying that www-data tried to update and d…

问题原文

原帖链接 · jakobS · CC BY-SA 3.0

I have successfully installed awstats on my webserver. I have created a cron job that runs as root every third hour. And it works perfectly, but i keep receiving "mails" every 10 minutes saying that www-data tried to update and did not have the right permissions for it.

Message 58:
From www-data@cosmos Sun Aug 21 23:20:02 2016
Envelope-to: root@cosmos
Delivery-date: Sun, 21 Aug 2016 23:20:02 +0200
From: root@cosmos (Cron Daemon)
To: root@cosmos
Subject: Cron  [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
Date: Sun, 21 Aug 2016 23:20:02 +0200

Error while processing /etc/awstats/awstats.****.***.conf
Create/Update database for config "/etc/awstats/awstats.****.***.conf" by AWStats version 7.2 (build 1.992)
>From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" : Permission denied
Setup ('/etc/awstats/awstats.****.***.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Error while processing /etc/awstats/awstats.conf
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.2 (build 1.992)
>From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" : Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

(END)

The problem is that i can`t find the cron job and delete it. I am aware that it is possible to stop getting "mails", but i want to stop the process from running every 10 minutes. Do anyone know where this cron job lives? Or how to stop it?

BTW: i am running debian 8.2

已采纳解答

原帖链接 · Peter · CC BY-SA 3.0

If you use dpkg to see the package contents, you will see a cron file:

$ dpkg -L awstats
/etc/cron.d/awstats

Comment out the lines in that file, eg. with

sed -r -i "s/^([^#])/#\1/" /etc/cron.d/awstats

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。