0

我有一个带有基于 Web 的系统配置 webmin 的 Ubuntu 14.04 服务器。

所以 awstat 是默认安装的。

我手动安装了插件 geoip 和 GeopIPCity 插件,但它不起作用,我收到以下警告消息:Tried to load plugin "geoip" twice. Fix config file.并且Tried to load plugin "geoip_city_maxmind" twice. Fix config file.

上面有这两行/etc/awstats/awstats.conf

LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/share/GeoIP/GeoIPCity.dat"

但也在虚拟主机的 awstat conf 文件中。

.dat 文件的位置很好:

root@Ubuntu-14LTS-NY1:/etc/awstats# ll /usr/share/GeoIP/GeoIP.dat
-rw-r--r-- 1 root root 827301 Apr  7  2014 /usr/share/GeoIP/GeoIP.dat

root@Ubuntu-14LTS-NY1:/etc/awstats# ll /usr/share/GeoIP/GeoIPCity.dat
-rw-r--r-- 1 root root 19756029 Apr 16 04:18 /usr/share/GeoIP/GeoIPCity.dat

我不知道在哪里检查以修复它。

谢谢你的帮助。

4

1 回答 1

0

两次,为什么两次!

所以我看了一下配置文件。并且有一个主配置文件和虚拟主机配置文件。

    root@Ubuntu-14LTS-NY1:~# ll /etc/awstats/awstats.*
    -rw-r--r-- 1 root root 62092 Apr  1 05:14 /etc/awstats/awstats.mywebsite1.org.conf
    -rw-r--r-- 1 root root 62057 Apr 21 17:59 /etc/awstats/awstats.conf
    -rw-r--r-- 1 root root   240 Nov 16  2013 /etc/awstats/awstats.conf.local
    -rw-r--r-- 1 root root 61915 Apr 21 17:14 /etc/awstats/awstats.mywebsite2.net.conf

因此,如果我修改/etc/awstats/awstats.conf添加行 L ,例如oadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat",我不能将其添加到网站配置文件/etc/awstats/awstats.mywebsite1.org.conf中。

我认为这是配置文件的奇怪反应。加载两次!

于 2016-04-22T07:13:50.967 回答