Search Engine: Elastic

Article ID: 1766, created on Mar 28, 2007, last review on May 11, 2014

  • Applies to:
  • Operations Automation

Symptoms

Customers cannot get Webalizer statistics twice a year.

Cause

Webalizer writes the current time shift from GMT to the webalizer.current file. When daylight saving time starts/ends, the time shift changes and Webalizer does not parse the log files properly.

Resolution

Replace the old GMT shift with the new one in the webalizer.current config file. In order to perform this action for all currently hosted webspaces, execute the command below:

sed -i '2s/old_gmt_shift$/new_gmt_shift/' /usr/local/pem/vhosts/*/webspace/webstat/webalizer.current

For example, the old shift from GMT was 1 hour and the new one is 2 hours, so command should be as follows:

sed -i '2s/1$/2/' /usr/local/pem/vhosts/*/webspace/webstat/webalizer.current

8fc71f07abe5b233fea1ae0377cd5e3d 5356b422f65bdad1c3e9edca5d74a1ae

Email subscription for changes to this article
Save as PDF