The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_geoip optmod loaded but not working

Discussion in 'General Discussion' started by dannet, Apr 21, 2009.

  1. dannet

    dannet Member

    Joined:
    May 7, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Hello, I have installed the mod_geoip as easyapache optional module (http://www.cpanel.net/apps/easyapache/custom.html) and its being succesfully showed as an option in the easyapache list of modules, and apparently is installed and loaded, but its not working.

    The easyapache log:

    Code:
    
    !! Custom opt mod 'Cpanel::Easy::ModGeoIP' is using custom opt mod tarball '/var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/ModGeoIP.pm.tar.gz' !!
    
    -- Begin opt 'Mod GeoIP (Custom Opt Mod)' --
    
        -- Begin step 'Installing GeoIP C Library' --
        -- End step 'Installing GeoIP C Library' --
    
        -- Begin step 'APXSing mod_geoip into apache' --
    /usr/local/apache/build/libtool --silent --mode=compile gcc -prefer-pic   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/local/apache/include  -I/usr/local/apache/include   -I/usr/local/apache/include  -I/opt/geoip/include  -c -o mod_geoip.lo mod_geoip.c && touch mod_geoip.slo
    /usr/local/apache/build/libtool --silent --mode=link gcc -o mod_geoip.la  -L/opt/geoip/lib -lGeoIP -rpath /usr/local/apache/modules -module -avoid-version    mod_geoip.lo
    /usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' mod_geoip.la /usr/local/apache/modules
    /usr/local/apache/build/libtool --mode=install cp mod_geoip.la /usr/local/apache/modules/
    cp .libs/mod_geoip.so /usr/local/apache/modules/mod_geoip.so
    cp .libs/mod_geoip.lai /usr/local/apache/modules/mod_geoip.la
    cp .libs/mod_geoip.a /usr/local/apache/modules/mod_geoip.a
    chmod 644 /usr/local/apache/modules/mod_geoip.a
    ranlib /usr/local/apache/modules/mod_geoip.a
    PATH="$PATH:/sbin" ldconfig -n /usr/local/apache/modules
    ----------------------------------------------------------------------
    
    chmod 755 /usr/local/apache/modules/mod_geoip.so
    [activating module `geoip' in /usr/local/apache/conf/httpd.conf]
        -- End step 'APXSing mod_geoip into apache' --
    -- End opt 'Mod GeoIP (Custom Opt Mod)' --
    
    
    Server details:
    Code:
    cPanel 11.24.4-S35075 - WHM 11.24.2 - X 3.9
    CENTOS 5.3 i686
    Linux 2.6.18-128.1.6.el5
    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 PHP/5.2.8
    
    Phpinfo shows the mod_geoip in the list of loaded modules, but GEOIP_COUNTRY_CODE, GEOIP_COUNTRY_NAME and the other mod_geoip variables are not present.

    Any idea?

    Thanks in advance
    Daniel
     
  2. dannet

    dannet Member

    Joined:
    May 7, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Buenos Aires, Argentina
    cPanel Access Level:
    Root Administrator
    Solved adding on httpd.conf:

    Code:
    GeoIPEnable On
    GeoIPDBFile "/opt/geoip/share/GeoIP/GeoIP.dat"
    Regards
     

Share This Page