LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   GeoIP don't display in phpinfo (http://www.litespeedtech.com/support/forum/showthread.php?t=6240)

stairmaster 09-16-2012 10:50 PM

GeoIP don't display in phpinfo
 
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 09-16-2012 11:20 PM

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


All times are GMT -7. The time now is 03:29 PM.