I have installed geoip, everything seems fine, but its not actually working.
Any ideas?
I have tried installing it from cpanel/command line/for cpanel, etc I will provide any logs/files.
modules directory
ls /etc/httpd/modules/
./ ../ httpd.exp libphp5.so* mod_bwlimited.so* mod_disable_suexec.so* mod_geoip.so* mod_security2.so mod_suphp.so* mod_zeus.so*
httpd.conf file
<VirtualHost IP:80>
ServerName hostname
GeoIPEnable On
.htaccess file
cat .htaccess
GeoIPEnable On
GeoIPDBFile /usr/shared/GeoIP/GeoIP.dat MemoryCache
SetEnvIf GEOIP_COUNTRY_CODE RO BlockCountry
# Canada
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CA$
RewriteRule ^result.png http://www.google.com$1 [L]
I have added php file on server:
<?php
$country = $_SERVER["GEOIP_COUNTRY_NAME"];
echo "<br />My Country : $country<br />";
The output is:
My Country :
It doesn't return anything.
Thanks