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!

Can't install geoip (php module) using Pecl

Discussion in 'General Discussion' started by karlos.vanger, Sep 22, 2013.

  1. karlos.vanger

    karlos.vanger Member

    Joined:
    Jun 4, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm trying to install php geoip using pecl and I'm getting following error:


    Warning: require_once(Archive/Tar.php): failed to open stream: No such file or directory in PEAR/PackageFile.php on line 305

    Warning: require_once(Archive/Tar.php): failed to open stream: No such file or directory in /usr/local/lib/php/PEAR/PackageFile.php on line 305

    Fatal error: require_once(): Failed opening required 'Archive/Tar.php' (include_path='/usr/local/lib/php') in /usr/local/lib/php/PEAR/PackageFile.php on line 305

    Is there any solution for this? Is that possible to reinstall Pecl?

    Thanks,
    Karlos
     
  2. Aaron.Edwards

    Aaron.Edwards Active Member

    Joined:
    Sep 21, 2013
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    What is your current cPanel tier ? Stable ?
     
  3. karlos.vanger

    karlos.vanger Member

    Joined:
    Jun 4, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,


    It is 11.38.2 build (7).

    Thanks
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,943
    Likes Received:
    1,819
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Please try running the following command:

    Code:
    mv /usr/local/lib/php/PEAR /usr/local/lib/php/PEAR-backup
    Then, rebuild Apache/PHP via EasyApache to generate a new copy of this directory.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. karlos.vanger

    karlos.vanger Member

    Joined:
    Jun 4, 2013
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Thank you.
     
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