AWStats 7.8 choking on GeoIP

jvdwilk

Verified User
Joined
Aug 2, 2006
Messages
38
After updating AWStats from 7.7 to 7.8 I noticed that the statistics pages on my site were not displaying anymore.

The system is a CloudLinux 8 installation with CageFS enabled, and the GeoIP databases from /usr/share/GeoIP/ distributed into the CageFS Skeleton OS.

After the AWStats update, when I open a website its statistics page, the page is not displaying.
In Firefox the awstats.pl script is offered for download, and in Chrome it claims to not find or have moved the awstats.pl 'page' to a new location...

Disableing the GeoIP datebases in /usr/local/awstats-7.8/wwwroot/cgi-bin/awstats.model.conf
(commenting out the LoadPlugin="geoip2_country /usr/share/GeoIP/GeoLite2-Country.mmdb" and LoadPlugin="geoip2_city /usr/share/GeoIP/GeoLite2-City.mmdb" lines)
and force-updating CageFS, and deleting awstats from the user directories and having them re-distribute...

cd /home rm -f */domains/*/awstats/.htaccess rm -f */domains/*/awstats/awstats.pl rm -f */domains/*/awstats/.data/awstats.*.conf echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue

and AWStats works again.

But I did really like the country flags in AWStats, and I would really like to get them back...
Anyone any ideas on this?
 
Last edited:
Wow, I had not seen that new documentation site yet. I'm impressed...

But the answer was not so straight forward...
First off, the server is a rather new setup, and while AWStats 7.7 did not complain about it, it obviously couldn't have worked correctly.
Just the odd behaviour after upgrading to AWStats 7.8 pointed me to there 'something' not being correct.

I had to install cpan itself, for it was not installed at all. I missed that.
And then of course all the perl modules.
I have installed the following:
cpan -i YAML; cpan -i Geo::IP Geo::IP::PurePerl cpan -i Net::IP Net::DNS Net::XWhois cpan -i GeoIP2::Database::Reader

The last line was needed for using the new GeoIP2 databases.
This works, kind of... the City database shows the cities correctly, but the Country database lists the countries on a line in the header of the table, and creates a column under the 'Country' header which duplicates the 'Pages' hits data.

Weird, incorrect, but fixing this is far beyond my knowledge...
I have fallen back to using the GeoIP1 database for the country date, but still using the GeoIP2 database for the City data.
Not a great solution, since the GeoIP1 database is not supported / updated anymore, but better then just disabling the feature for the moment.
 
I don’t use awstats but if you are doing something outside of the documentation it’s most likely not supported. I would undo all of the custom stuff you tried and follow the documentation.

Outside of that you will need to log a feedback request.
 
Back
Top