LoadPlugin in AWstats configuration file

  • Go to Virtualmin -> Logs and Reports - AWstats Configuration
  • Click on Enable plugins
  • Enable geoip (GeoIP Maxmind AWstats) plugin
  • Save

In AWstats page you see at the bottom plugin geoip.

Go to /etc/awstats and open the file associated with you virtual server. Look for LoadPlugin="geoip

Here is the line you will find:

#LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"

If this line is still commented how can AWstats know the plugin is loaded? Normally after enabling this plugin and save in Virtualmin interface, this line shoudn't be commented.



Are you sure Virtualmin didn't add a new LoadPlugin line for geoip elsewhere in the file?

I checked urlalias plugin in Virtualmin interface and the line in /etc/awstats.virtualmin.test.conf is changed to:


I unchecked hasfiles plugin in Virtualmin interface and the line in the same file is changed from:




So this is the file where Virtualmin saves my plugin changes.

Here is the block where I should see the changes for geoip plugin too:

# REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind)
# PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/geoip.dat[+/pathto$
# DESCRIPTION: Builds a country chart and adds an entry to the hosts
# table with country name
# Replace spaces in the path of geoip data file with string "%20".
#LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"

No matter if you check or uncheck geoip, the comment is not removed. I search the whole file for the same line and there are no records.