gunemalli
Verified User
The latest versions of DA comes with awstats but when i was looking in the stats generated, there were no countries identified. So i went looking for solutions and mgot my system work.
So I'm now sharing the information with you on what i did to get it working with existing users and new users alike.
Prerequisite
run the following as root
And you're done. here's breakdown on what this script does.
* The only config change from the default DA installation is DNSLookup is set to 0 (orignally 2)(For performance) the lines needed to run the plugin.
Hope you enjoyed this. Please send me your feedbacks here.
Sources:
http://antezeta.com/awstats/geoip.html
http://wiki.jaumesola.com/DirectAdmin/AWStats
SideNote:
This script is in a such a state that it could be integrated DA's Awstats installation/update scripts with very little tweaking.
So I'm now sharing the information with you on what i did to get it working with existing users and new users alike.
Prerequisite
- DirectAdmin
- Awstats (tested on 6.95)
- C/C++
- Perl
run the following as root
Code:
wget http://simplispace.com/downloads/geoip.sh
chmod 0755 geoip.sh
./geoip.sh
And you're done. here's breakdown on what this script does.
- Downloads GeoIP databases
- Downloads GeoIP C and Pearl sources
- Build and install GeoIP C and Pearl Modules
- Download modified awstats.model.conf from simplispace.com *
- erase all users' awstats.DOMAIN.conf file
- recreate all awstats conf files
- clean up the files
* The only config change from the default DA installation is DNSLookup is set to 0 (orignally 2)(For performance) the lines needed to run the plugin.
Hope you enjoyed this. Please send me your feedbacks here.
Sources:
http://antezeta.com/awstats/geoip.html
http://wiki.jaumesola.com/DirectAdmin/AWStats
SideNote:
This script is in a such a state that it could be integrated DA's Awstats installation/update scripts with very little tweaking.
Last edited: