GeoIP don't display in phpinfo

Discussion in 'General' started by stairmaster, Sep 17, 2012.

  1. stairmaster

    stairmaster New Member

    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?
  2. NiteWave

    NiteWave Administrator

    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

Share This Page