Results 1 to 1 of 1

Thread: install mod_geoip on cpanel centos

  1. #1
    Administrator GumSlone's Avatar
    Join Date
    Mar 2005
    Location
    Mars, GumCity
    Posts
    1,494
    Thanks
    125
    Thanked 573 Times in 201 Posts
    Blog Entries
    2
    Rep Power
    10

    Default install mod_geoip on cpanel centos

    Copypasted from : [Only registered and activated users can see links. Click Here To Register...]

    1) Downalod the latets GEOIP package from [Only registered and activated users can see links. Click Here To Register...] and install it

    Code:
    # wget -c  http://geolite.maxmind.com/download/geoip/api/c/GeoIP-1.4.6.tar.gz
    # tar -xzf GeoIP-1.4.6.tar.gz
    # cd GeoIP-1.4.6/
    # ./configure
    # make
    # make install
    2) Download and install latest mod_geoip2 from [Only registered and activated users can see links. Click Here To Register...]

    Code:
    # wget -c  http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.5.tar.gz
    # tar -xzf  mod_geoip2_1.2.5.tar.gz
    # cd mod_geoip2_1.2.5/
    # /usr/local/apache/bin/apxs -lGeoIP  -cia mod_geoip.c
    if you get error while restarting httpd conf, try this line:
    Code:
     apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c

    3) Restart apache

    OR

    Code:
    wget http://twiki.cpanel.net/twiki/pub/EasyApache3/CustomMods/custom_opt_mod-mod_geoip.tar.gz
    
    tar -C /var/cpanel/easy/apache/custom_opt_mods -xzf custom_opt_mod-mod_geoip.tar.gz
    and then run easy apache update from whm and chose the mod_geoip option.

    after all you need to enable mod_geoip
    Code:
    nano /usr/local/apache/conf/httpd.conf
    and add this to it:
    Code:
    GeoIPEnable On
    GeoIPDBFile "/path_to_geoipdat_file/GeoIP.dat"
    Advertise your mobile site for FREE with [Only registered and activated users can see links. Click Here To Register...]

    [Only registered and activated users can see links. Click Here To Register...]


  2. The Following User Says Thank You to GumSlone For This Useful Post:

    wapmetal (09-06-10)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 23-12-12, 07:32
  2. Install ffmpeg with cpanel centos server
    By GumSlone in forum Tutorials
    Replies: 15
    Last Post: 22-01-11, 11:59
  3. script install for £5
    By wapfuture in forum Marketplace
    Replies: 11
    Last Post: 08-04-10, 12:41
  4. Need Help to install
    By gregory in forum Marketplace
    Replies: 0
    Last Post: 26-06-09, 13:55
  5. Install.php
    By Rider in forum Coding Forum
    Replies: 7
    Last Post: 22-12-08, 20:28

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19