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.

Cannot use mod_geoip, please help !!

Discussion in 'General Discussion' started by alvarokid, Jun 17, 2007.

  1. alvarokid

    alvarokid Registered

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    I have a problem with mod_geoip.

    When i enabled mod_geoip. it seems to do the redirects ok but apache error_log show this:

    [Sun Jun 17 14:44:18 2007] [debug] /usr/local/src/mod_geoip_1.2.9/mod_geoip.c(282): [mod_geoip]: IPADDR:
    [Sun Jun 17 14:44:19 2007] [notice] child pid 24632 exit signal Segmentation fault (11)
    [Sun Jun 17 14:45:03 2007] [debug] /usr/local/src/mod_geoip_1.2.9/mod_geoip.c(282): [mod_geoip]: IPADDR:

    The only way to get rid of those Segmentation fault is commenting out mod_geoip from my httpd.conf and .htaccess.

    Sometimes it shows also this only with mod_geoip enabled:

    *** glibc detected *** double free or corruption (out): 0x09cd9528 ***
    *** glibc detected *** double free or corruption (out): 0x09cd9528 ***

    I have needed lines on my httpd.conf:

    LoadModule geoip_module libexec/
    AddModule mod_geoip.c

    <IfModule mod_geoip.c>
    GeoIPEnable On

    And my htaccess has:

    GeoIPEnable On
    GeoIPDBFile /home/GeoIP.dat

    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^EX$
    RewriteRule ^(.*)$ [L]

    where ex is a valid extension from a country.

    I already have recompiled apache and php to different versions and no luck, also upgraded cpanel.

    /home/GeoIP.dat exists.
    geiop version is 1.4.2
    mod_geoip 1.2.9

    uname -a
    Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux

    I appreciate any advice and a fix for this cause i really need to use geoip in my scripts.


Share This Page