Awstats - implement new options

Hi All,
I am trying to implement new options on /etc/awstats/awstats.host.com.conf
for example add enable button on browser so I can update the statitics instead of waiting for autoupdate
I have turned below to 1
AllowToUpdateStatsFromBrowser 1
I have rebuild the domain and even restarted the server but had no success. How can I restart awstats service in hestia in order to have it activated?

Suggestion to add the local config/ global files available in the hestiacp

many thanks

Ajust template files located in /usr/local/hestia/data/templates/web/awstats/

Rebuilding causes the settings to be reset…

Hi @eris I have actually added

AllowToUpdateStatsFromBrowser 1
to
/usr/local/hestia/data/templates/web/awstats/awstats.tpl

but does not seem to resolve or update anything? Even tried Chrome incognito just in case, does not seem to work. any other suggetion?

PS your frame on top may need adjustment on next version :stuck_out_tongue:

Feel free to propose any changes for the implementation via a pull request.

1 Like

@eris many thanks i have added the request.

  • When I open AWSTATS on browser the top frame needs adjustment in order to show Hestiacp logo correctly

Fixed limit height logo + increase slightly frame height
#1044

  • When add AllowToUpdateStatsFromBrowser 1 to /usr/local/hestia/data/templates/web/awstats/awstats.tpl
    wont show the button to update.

Unable to fix this issue tried things:

  1. Set allow AllowToUpdateStatsFromBrowser to 1 in all config files (/etc/awstats.conf, /usr/local/hestia/data/templates/web/awstats/awstats.tpl) with out any result
  2. Check code of awstats.pl (https://github.com/eldy/awstats/blob/58524d86acd77903b2ffbb985c9274ccdd531cde/wwwroot/cgi-bin/awstats.pl#L9959-L9977) to find if $AllowToUpdateStatsFromBrowser was set that was.
  3. Checked if $StaticLinks so some unknown reason when I echo it it returned td> .
  4. Modified awstats.pl to exclude $StaticLinks link to update is showing fine how even when I click it it shows a 404 error.

What does need to change to make it working

  1. Make awstats.pl available via web.
  2. Setup CGI-BIN propperly
  3. Unknown configuration changes.

I don’t know if the time worth it to change it. For me personally my answer is no . Feel free to contribute on it via Pull Request.

2 Likes

One can always run the webstats cronjob simply more often or use the cli command manually to update just in time. So I agree nothing we will work on, anyone feel free to solve it and send in a PR :wink:

2 Likes