Results 1 to 2 of 2
  1. #1

    Geoip on Linux CentOS cPanel Error

    Hello,
    I tried to install GeoIP for PHP via this command
    "pecl install geoip"

    It threw this error
    "downloading geoip-1.0.8.tgz ...
    Starting to download geoip-1.0.8.tgz (10,061 bytes)
    .....done: 10,061 bytes
    Could not get contents of package "/root/tmp/pear/download/geoip-1.0.8.tgz". Invalid tgz file.
    Download of "pecl/geoip" succeeded, but it is not a valid package archive
    Error: cannot download "pecl/geoip"
    Download failed
    install failed"


    I am running a CentOS 5 32bit VPS with cPanel.

    Thank you.

  2. #2
    Join Date
    Feb 2013
    Location
    Cochin
    Posts
    20
    Hello,


    You can install it using easyapache feature in cpanel, Since it is a custom module you have to add this module to the EasyApache system. These modules are compiled into Apache and/or PHP just like the modules provided with EasyApache.

    1, Login to the server via ssh
    2, Download and unzip Geoip into /var/cpanel/easy/apache/custom_opt_mods/

    wget docs.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

    3, Run EasyApache from backend or front end, from there you can select this module and install it.

    Warm Regards
    AiderPro Technologies

Similar Threads

  1. CentOS/cPanel easy installer for GeoIP and PHP-GeoIP
    By NetworkPanda in forum Software & Scripts Offers
    Replies: 0
    Last Post: 12-14-2012, 06:44 PM
  2. Install GeoIP on cPanel Server
    By kshazad86 in forum Hosting Security and Technology
    Replies: 2
    Last Post: 07-31-2012, 03:19 PM
  3. Error installing apc for php on linux/centos
    By levani in forum VPS Hosting
    Replies: 3
    Last Post: 12-22-2011, 12:13 PM
  4. Linux CentOS cPanel Bandwidth?
    By jacksony in forum Colocation, Data Centers, IP Space and Networks
    Replies: 8
    Last Post: 12-18-2011, 09:13 PM
  5. How To Install cPanel and Fantastico on Linux CentOS 5
    By NetShop ISP in forum Hosting Software and Control Panels
    Replies: 3
    Last Post: 10-28-2010, 05:42 AM

Posting Permissions

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