Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cannot use mod_geoip, please help !!

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

  1. alvarokid

    alvarokid Registered

    Joined:
    Nov 29, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    151
    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: 190.64.124.70
    [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: 190.64.124.70

    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/mod_geoip.so
    AddModule mod_geoip.c

    <IfModule mod_geoip.c>
    GeoIPEnable On
    </IfModule>


    And my htaccess has:

    GeoIPEnable On
    GeoIPDBFile /home/GeoIP.dat

    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^EX$
    RewriteRule ^(.*)$ http://www.google.com.ex [L]

    where ex is a valid extension from a country.

    notes:
    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 cpanel.my_domain.com 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.

    Thanks,
    Al
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice