wapmetal (09-06-10)
Copypasted from : [Only registered and activated users can see links. Click Here To Register...]
1) Downalod the latets GEOIP package from [Only registered and activated users can see links. Click Here To Register...] and install it
2) Download and install latest mod_geoip2 from [Only registered and activated users can see links. Click Here To Register...]Code:# wget -c http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz # tar -xzf GeoIP-1.4.6.tar.gz # cd GeoIP-1.4.6/ # ./configure # make # make install
if you get error while restarting httpd conf, try this line:Code:# wget -c http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.5.tar.gz # tar -xzf mod_geoip2_1.2.5.tar.gz # cd mod_geoip2_1.2.5/ # /usr/local/apache/bin/apxs -lGeoIP -cia mod_geoip.c
Code:apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c
3) Restart apache
OR
and then run easy apache update from whm and chose the mod_geoip option.Code:wget http://twiki.cpanel.net/twiki/pub/EasyApache3/CustomMods/custom_opt_mod-mod_geoip.tar.gz tar -C /var/cpanel/easy/apache/custom_opt_mods -xzf custom_opt_mod-mod_geoip.tar.gz
after all you need to enable mod_geoip
and add this to it:Code:nano /usr/local/apache/conf/httpd.conf
Code:GeoIPEnable On GeoIPDBFile "/path_to_geoipdat_file/GeoIP.dat"
Advertise your mobile site for FREE with [Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
wapmetal (09-06-10)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks