mod_geoip merupakan modul API dirilis oleh MaxMind untuk Apache (atau bergantian, LiteSpeed) dengan cepat dan mudah mendapatkan informasi geografis pengunjung website Anda ‘. Menawarkan IP kinerja tinggi lookup terutama bila digunakan bersama-sama dengan PHP. Lihat patokan
Berikut cara instal mod_geoIP
Login SSH dan buatlah folder dengan menjalankan perintah berikut
mkdir /usr/share/GeoIP
cd /usr/share/GeoIP
Download dan instal geoIP
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gzip -d GeoIP.dat.gz
Download dan instal costume geoIP untuk whm
wget https://documentation.cpanel.net/download/attachments/2326651/custom_opt_mod-mod_geoip.tar.gz
tar -C /var/cpanel/easy/apache/custom_opt_mods -xzf custom_opt_mod-mod_geoip.tar.gz
Rebuilding apache
WHM -> Software -> EasyApache (Apache Update) -> Start customizing based on profile -> Check 'Mod GeoIP' option (on Short / Exhaustive Options List page) -> Save and Build
aktifasi mod geoIP
WHM -> Service Configuration -> Apache Configuration -> Include Editor -> Pre Main Include -> Select the current Apache version
Masukan kode berikut
LoadModule geoip_module /usr/local/apache/modules/mod_geoip.so
GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat MemoryCache
Dah gitu aja langkah langkahnya mudah to
Comments are closed, but trackbacks and pingbacks are open.