AWFFull

From YobiWiki
Jump to navigation Jump to search

AWFFull Homepage

apt-get install awffull libgd2-xpm

GeoIP Country detection

apt-get install geoip-bin 

in /etc/awffull/awffull.conf:

GeoIP          yes

Actually awffull is not compiled with GeoIP support but we can rebuild the package

awffull -v (interrupt it, it's at the beginning)
=> GeoIP is not available in this binary. Ignoring request to use.

ok, don't be impressed ;-)
the building process of awffull is pretty well done, if it detects the headers of GeoIP it uses it, as simply as that.

apt-get build-dep awffull
apt-get source awffull
cd awffull-3.7.1/
apt-get install libgeoip1 libgeoip-dev
dpkg-buildpackage -uc -b 

Et voilà! You can install the new .deb freshly created.
Now you can run it, it will give e.g.

awffull -v
=> awffull 3.7.1 (Linux 2.6.17-2-vserver-amd64) English
=> Using GeoIP for IP Address Lookups: /usr/share/GeoIP/GeoIP.dat

see an example in http://www.justbiit.com/awffull/

Don't forget to point to the right log file : /var/log/apache2/access.log in the /etc/awffull/awffull.conf