GeoIP don't display in phpinfo

#1
Hi,

I can't get my GeoIP server variables to work in phpinfo.php

My settings in Litespeed in 'IP to GeoLocation DB' ..
DB File Path: /usr/local/share/GeoIP
DB Cache Type: MemoryCache

I have put my .dat files in what I believe is the correct folder
/usr/local/share/GeoIP/GeoIP.dat
/usr/local/share/GeoIP/GeoIPCity.dat

In my website's .htaccess file I have
GeoIPEnable On
GeoIPDBFile /usr/local/share/GeoIP/GeoIP.dat
GeoIPDBFile /usr/local/share/GeoIP/GeoIPCity.dat

I expect to be able to see my GeoIP server variables in phpinfo.php but they are not there. What can I do?
 

NiteWave

Administrator
#2
please set it at server level, not in .htaccess

lsws admin console->Server->General
->Enable IP GeoLocation:Yes

lsws admin console->Server->General
->IP to GeoLocation DB: Add
DB File Path: /usr/local/share/GeoIP/GeoIPCity.dat
DB Cache Type: MemoryCache
 
Top