conf설정
# Plugin: GeoIP
LoadPlugin="geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat"
# /usr/local/awstats-7.7/wwwroot/cgi-bin/awstats.pl -update -config=[도메인]
에러발생
Error: Plugin load for plugin 'geoip' failed with return code: Error:
Can't locate Geo/IP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /usr/local/awstats-7.7/wwwroot/cgi-bin/lib /usr/local/awstats-7.7/wwwroot/cgi-bin/plugins) at (eval 4) line 1.
Can't locate Geo/IP/PurePerl.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /usr/local/awstats-7.7/wwwroot/cgi-bin/lib /usr/local/awstats-7.7/wwwroot/cgi-bin/plugins) at (eval 5) line 1.
Error: Need Perl module Geo::IP or Geo::IP::PurePerl
Setup ('/etc/awstats/awstats.besttime.kr.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
해결방법
# yum install -y libyaml*
# yum install -y perl-CPAN
# cpan Geo::IP::PurePerl Geo::IP
'# Web&WAS > Apache' 카테고리의 다른 글
아파치 GeoIP 설정 및 적용(centos5x) (0) | 2020.01.30 |
---|---|
아파치 internal dummy connection 로그 생성 방지 (0) | 2020.01.22 |
아파치 GeoIP 설정 및 적용(centos7x) (0) | 2020.01.17 |
아파치 modsecurity 설치 및 테스트 (0) | 2019.12.13 |
arp, apr-util, pcre 설치(아파치 설치전) (0) | 2019.12.09 |
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!