# download and untar

http://awstats.sourceforge.net/

# download GeoIP

http://www.maxmind.com/app/geoip_country
http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz

mkdir /usr/share/GeoIP
cp GeoIP.dat /usr/share/GeoIP

# install GeoIP API
# http://www.maxmind.com/app/c

wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
./configure && make && make install
ldconfig

# instlal Geo::IP perl module
# http://search.cpan.org/~tjmather/Geo-IP-1.28/lib/Geo/IP.pm

wget http://search.cpan.org/CPAN/authors/id/T/TJ/TJMATHER/Geo-IP-1.28.tar.gz
./configure && make && make install

# httpd.conf

VirtualHost *
ServerName www.testtt.com.tw
DocumentRoot /var/www/html/user-web/awstats/html

Alias /awstatsclasses "/var/www/html/user-web/awstats/classes/"
Alias /awstatscss "/var/www/html/user-web/awstats/css/"
Alias /awstatsicons "/var/www/html/user-web/awstats/icon/"
ScriptAlias /awstats/ "/var/www/html/user-web/awstats/cgi-bin/"

Directory "/var/www/html/user-web/awstats/cgi-bin"
Options None
AllowOverride None
Order allow,deny
Allow from all
/Directory
/VirtualHost

創作者介紹

創造心理的感動

gisanfu 發表在 痞客邦 PIXNET 留言(0) 人氣()