mod_geoip

Discussion in 'Apache' started by Rizy, Oct 11, 2008.

  1. #1
    Hi,

    Trying to install GeoIP lite and really haven't received error messages - but it's not working much at all. I'm struggling a lot. It says mod_geoip is installed, yet putting anything in .htaccess does nothing.

    Below is phpinfo()
    http://rizy.org/php.php

    I'v installed it on debian fine, apt-get ftw. But come centos, eh.

    Any help or ideas would be appreciated.

    Thanks.
     
    Rizy, Oct 11, 2008 IP
  2. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have a look in your Apache conf file (usually httpd.conf or apache2.conf) for lines that look like these:
    LoadModule geoip_module lib/apache/mod_geoip.so
    GeoIPEnable On
    AddModule mod_geoip.c
    Code (markup):
    If those lines aren't there, they need to be. The path to your modules directory may be different. I think the "GeoIPEnable On" line may be able to go in your .htaccess file. The instructions for all of this should be in the INSTALL file that came with your copy of mod_geoip.
     
    Ladadadada, Oct 14, 2008 IP