1

So I have a newly installed server running Ubuntu 14.04 with the default install of Sentora the free open source control panel. I did not make any customization to webalizer or cron. So I am unsure why this error is being thrown. Any ideas?

Here is the email I receive from the server to the root user's email address.

Subject: Cron test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Body:

/etc/cron.daily/webalizer: /etc/cron.daily/webalizer: 17: /etc/cron.daily/webalizer: Â continue: not found awk: fatal: cannot open file `/etc/webalizer/*.conf' for reading (No such file or directory)

The direcotry /etc/webalizer only has one file in it: webalizer.conf.sample. And searching the entire server for a file of webalizer.conf comes up with nothing. So is something misconfigured? Should I just remove this cron job or something? Any thoughts?

masegaloeh
  • 18,498

1 Answers1

1

Webalizer is not configured correctly, as there's no configuration file. To use it, copy webalizer.conf.sample to webalizer.conf and modify it to fit your setup and needs. You can also create more than one configuration file with .conf, as the cron job runs through all *.conf (/etc/cron.daily/webalizer):

for i in ${WEBALIZER_CONFDIR}/*.conf; do
    [...]

And if there's no file matching this bash-glob, bash will through an error by default.


In case you don't want to use webalizer, uninstall it using apt-get purge webalizer.

sebix
  • 4,432