# Rocky Linux 9 & AWStats & GeoIP

**URL:** <https://forum.virtualmin.com/t/rocky-linux-9-awstats-geoip/116798>\
**Category:** Virtualmin\
**Created:** [September 8, 2022, 8:04am UTC](https://forum.virtualmin.com/t/rocky-linux-9-awstats-geoip/116798 "2022-09-08T08:04:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![datateam](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/datateam/32/847_2.png) [@datateam](https://forum.virtualmin.com/u/datateam)\
**Post date:** [September 8, 2022, 8:04am UTC](https://forum.virtualmin.com/t/rocky-linux-9-awstats-geoip/116798/1 "2022-09-08T08:04:19Z")

</div>

Hi

I struggle now a bit with AWStats and GeoIP on my new Rocky Linux 9 Installation.  
When I activate in the interface geoip2\_country and geoip2\_city no error is thrown but also I have for every IP unknown as country. So I downloaded the mmdb files, added them in the conf file and still not working and even worth when I click save and regenerate reports within the interface these lines are deactivated again.  
Than I saw that at the end of the conf file the plugin is also loaded. So I added the path to mmdb file at that point and than within the interface I see that the plugins are deactivated and reactivating them again deactivates my line and add just a line to load the plugin without a path to the mmdb file.

So I thought I maybe wrong and tried the plugin geoip\_city\_maxmind and also geoip (not both together) but that leeds just in an error:

Error: Plugin load for plugin ‘geoip\_city\_maxmind’ failed with return code: Error:  
Can’t locate Geo/IP.pm in @INC (you may need to install the Geo::IP module) (@INC contains: /usr/libexec/webmin /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor\_perl /usr/share/perl5/vendor\_perl /usr/lib64/perl5 /usr/share/perl5 /usr/share/awstats/lib /usr/share/awstats/plugins) at (eval 6) line 1.  
Can’t locate Geo/IP/PurePerl.pm in @INC (you may need to install the Geo::IP::PurePerl module) (@INC contains: /usr/libexec/webmin /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor\_perl /usr/share/perl5/vendor\_perl /usr/lib64/perl5 /usr/share/perl5 /usr/share/awstats/lib /usr/share/awstats/plugins) at (eval 7) line 1.  
Error: Need Perl module Geo::IP or Geo::IP::PurePerl

And for GeoIPFree Plugin:  
Error: Plugin load for plugin ‘geoipfree’ failed with return code: Error: Can’t locate Geo/IPfree.pm in @INC (you may need to install the Geo::IPfree module) (@INC contains: /usr/libexec/webmin /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor\_perl /usr/share/perl5/vendor\_perl /usr/lib64/perl5 /usr/share/perl5 /usr/share/awstats/lib /usr/share/awstats/plugins /usr/share/awstats/wwwroot/cgi-bin/plugins) at (eval 6) line 1.

I tried installing all I could find with yum for geoip and maxmind but no success ☹

Isn’t that working? I never investigated much time in awstats as I used webalizer but Webalizer isn’t available anymore on Rocky Linux 9

Thanks for any ideas that I could me missing

---

<div class="post-metadata">

**Author:** ![datateam](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/datateam/32/847_2.png) [@datateam](https://forum.virtualmin.com/u/datateam)\
**Post date:** [September 8, 2022, 8:20am UTC](https://forum.virtualmin.com/t/rocky-linux-9-awstats-geoip/116798/2 "2022-09-08T08:20:44Z")

</div>

At the end at least geoipfree seems to work now  
Over CPAN I installed different modules but for geolite2 database still no success

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [November 7, 2022, 8:21am UTC](https://forum.virtualmin.com/t/rocky-linux-9-awstats-geoip/116798/3 "2022-11-07T08:21:28Z")

</div>

Closed on November 7, 2022, 8:21am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
