HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Webalizer error (http://www.howtoforge.com/forums/showthread.php?t=56526)

itwillcome 13th March 2012 15:18

Webalizer error
 
Hi all,

Last week my server was shutdown because of power failure.
And after reboot, the webalizer does not update statistics anymore.

Now every day when webailzer runs, I get an email:
================================================
/etc/cron.daily/00webalizer:

Error: Unable to restore run data (99)
/etc/cron.daily/0logwatch:

You have old files in your logwatch tmpdir (/var/cache/logwatch):
logwatch.sqTADAON
The directories listed above were most likely created by a
logwatch run that failed to complete successfully. If so, you
may delete these directories.
================================================

I remove the tmpdir. No use.

I tried to remove and install webalizer again. Cannot solve the problem.

I have searched google and try suggestions like:
# rm -f /var/www/*/web/stats/webalizer.current
# rm -f /var/www/*/web/stats/webalizer.hist
# /etc/cron.daily/00webalizer

Still the same problem:
Error: Unable to restore run data (99)

Can anybody help?

itwillcome 15th March 2012 17:04

As I can't have the webalizer working, I try to go for awstats.

I upgrade the ISPConfig to 2.2.40, but I can't find where to enable it... :confused:

After reading the script /root/ispconfig/scripts/shell/awstats.php ,
I notice that I can enable certain domain to use awstats by setting webalizer_stats field to '2'.

I want to know where this option can be set in the control panel.
Thanks.

till 15th March 2012 17:10

You can select the statistics type for each website on the stats tab of the website settings.

itwillcome 15th March 2012 17:46

Quote:

Originally Posted by till (Post 275565)
You can select the statistics type for each website on the stats tab of the website settings.

Hi Till,

Thanks for the reply.

But in the statistics tab on both ISP Client and ISP Site,
it shows the traffic statistics only.
There is no option can be set.

Stats tab of ISP Client: http://s15.postimage.org/42m412htz/ispclient.jpg

Stats tab of ISP Site: http://s13.postimage.org/61veu15mb/ispsite.jpg

jnsc 15th March 2012 18:54

It's the last entry of the Options tab.

itwillcome 15th March 2012 20:53

Quote:

Originally Posted by jnsc (Post 275575)
It's the last entry of the Options tab.

Thanks jnsc.

But in my options tab:
http://s8.postimage.org/aexy81l8h/options.jpg

The last entry is just a checkbox.

Check it will make the webalizer_stats field to '1'.
Uncheck it will make the field to '0'.
Never '2' ... :confused:

jnsc 15th March 2012 22:20

It should look like this
http://s17.postimage.org/5su7gnduj/Screen.jpg

Did you had an error during update? it look like your update went wrong

do you have this
Code:

### AWStats Section ###
Alias /icon "/home/admispconfig/ispconfig/tools/awstats/wwwroot/icon/"
### End of AWStats Section ###

in your /etc/apache2/apache2.conf

itwillcome 16th March 2012 12:42

Quote:

Originally Posted by jnsc (Post 275598)
It should look like this
http://s17.postimage.org/5su7gnduj/Screen.jpg

Did you had an error during update? it look like your update went wrong

do you have this
Code:

### AWStats Section ###
Alias /icon "/home/admispconfig/ispconfig/tools/awstats/wwwroot/icon/"
### End of AWStats Section ###

in your /etc/apache2/apache2.conf


I don't have any error during update.
My options tab is not as yours. :(

Only a checkbox for "webalizer stats". (version 2.2.40)

http://s9.postimage.org/cngb7ddbf/options.jpg


# tail -n 3 /etc/httpd/conf/httpd.conf
### ISPC AWStats Section ###
Alias /awstatsicons "/home/admispconfig/ispconfig/tools/awstats/wwwroot/icon/"
### End of ISPC AWStats Section ###


I think there are some problems of my version of ISPConfig...
I'll try reinstall ISPConfig later. Thanks for your kindly help, jnsc.


All times are GMT +2. The time now is 03:01.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.