MAN5
April 23, 2023, 3:31am
1
AWStats country not showing
Hestia v1.7.3
Ubuntu 20.04
Seems there was a closed topic, but still i have this issue.
Ref: AWStats | Country origin
I have not done any CLI tweaks as sugested. I thought it resolved in this new update, but seems not yet…
eris
April 23, 2023, 3:42pm
2
We don’t resolve by default as it costs about 30% extra service performance. So you need to run the command
MAN5
April 24, 2023, 3:20am
3
Ooh, yeah. Understood. Thank you team.
But please, can you guide me which v-hestia-xxxx command (OR) something else to get it like…
AWStats ip>country resolved on-demand
AWStats update on-demand
MAN5
April 24, 2023, 9:03am
4
OK, got it…
bash /usr/local/hestia/install/upgrade/manual/install_awstats_geoip.sh
sudo mkdir -p /usr/share/GeoIP && cd /usr/share/GeoIP && rm -f GeoIP.dat.gz && wget https://mailfud.org/geoip-legacy/GeoIP.dat.gz && gzip -d -f GeoIP.dat.gz
v-update-web-domains-stat [USER]
ref: How to get AWStats report with Country codes in hestiaCP? | Guest Blog Posting
scan
April 27, 2023, 8:49pm
5
To avoid this error during activation of the Awstats geoIP - “Error: Need Perl module Geo::IP or Geo::IP::PurePerl Ubuntu” - U need to add one more string to your commands.
sudo apt-get install -y libgeo-ip-perl
So, finally the full commands pool will look like:
sudo apt-get install -y libgeo-ip-perl
bash /usr/local/hestia/install/upgrade/manual/install_awstats_geoip.sh
sudo mkdir -p /usr/share/GeoIP && cd /usr/share/GeoIP && rm -f GeoIP.dat.gz && wget https://mailfud.org/geoip-legacy/GeoIP.dat.gz && gzip -d -f GeoIP.dat.gz
v-update-web-domains-stat [USER]
MAN5
April 28, 2023, 5:05am
6
No need.
Not sure what do u meant ‘To avoid this error during activation…’ ?
The module you mentioning is already included in Hestia > install_awstats_geoip.sh --Ln:32'