LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   Geolocation is disable even when it is set to be enabled (http://www.litespeedtech.com/support/forum/showthread.php?t=2573)

SimonT 12-27-2008 11:33 PM

Geolocation is disable even when it is set to be enabled
 
After enabling Mod GeoLocation in the web control panel in 3.3.23 Running on CentOS 5.2 x86_64 standard I receive the following error


2008-12-28 02:06:05.047 ERROR Failed to open GeoIP DB file: /usr/share/GeoIP
2008-12-28 02:06:05.047 WARN Failed to setup a valid GeoIP DB file, Geolocation is disable!

I have checked the path to the .dat file and it is correct. I have also tried to download the latest build of the databases but it does not make any changes.
PHP Code:

$country_code $_SERVER['GEOIP_COUNTRY_CODE']; 


Comes back blank as I guess from the above error Geolocation is disable

Any ideas `:-)

mistwang 12-28-2008 10:41 AM

You need to give the full path to the GeoIP DB file, and make sure there is no permission problem.


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