Geolocation is disable even when it is set to be enabled

Discussion in 'Install/Configuration' started by SimonT, Dec 28, 2008.

  1. SimonT

    SimonT New Member

    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:
    $country_code $_SERVER['GEOIP_COUNTRY_CODE'];

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

    Any ideas `:)
  2. mistwang

    mistwang LiteSpeed Staff

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

Share This Page