LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Geolocation is disable even when it is set to be enabled

Reply
 
Thread Tools Display Modes
  #1  
Old 12-27-2008, 11:33 PM
SimonT SimonT is offline
New Member
 
Join Date: Dec 2008
Posts: 1
Unhappy 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 `:-)
Reply With Quote
  #2  
Old 12-28-2008, 10:41 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You need to give the full path to the GeoIP DB file, and make sure there is no permission problem.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:51 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.