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.

Pear upgrade issue

Discussion in 'General Discussion' started by camillemoussett, Aug 22, 2006.

  1. camillemoussett

    Joined:
    Oct 19, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I am trying to install new PEAR modules but it's failing all the time.

    for example,

    pear upgrade Archive_Tar
    downloading Archive_Tar-1.3.1.tgz ...
    Starting to download Archive_Tar-1.3.1.tgz (15,102 bytes)
    .....done: 15,102 bytes
    failed to write /usr/local/lib/php/Archive/.tmpTar.php

    the installed modules are running fine, the problems seem to be limited to the upgrade commands. I tried to manually replace the Tar.php file (with the newest version) in the proper folder as mentionned in this post http://pear.php.net/bugs/bug.php?id=7272 but with no success.

    The server is running PHP 4.4.2 on WHM 10.8.0 - cPanel 10.8.2-S120

    Any ideas or suggestions?

    thanks in advance.
     
    #1 camillemoussett, Aug 22, 2006
    Last edited: Aug 22, 2006
  2. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    what does the following show?

    Code:
    pear list-upgrades
    
     
  3. camillemoussett

    Joined:
    Oct 19, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Code:
    pear list-upgrades
    Available Upgrades (stable):
    ============================
    Package              Local          Remote          Size
    Archive_Tar          1.1 (stable)   1.3.1 (stable)  14.8kB
    DB                   1.6.2 (stable) 1.7.6 (stable)  122kB
    HTML_QuickForm       3.2.5 (stable) 3.2.6 (stable)  100kB
    HTML_Template_IT     1.1 (stable)   1.1.4 (stable)  19.7kB
    Mail                 1.1.3 (stable) 1.1.10 (stable) 16.5kB
    Net_FTP              1.3.1 (stable) 1.3.2 (stable)  25kB
    Net_Geo              1.0 (stable)   1.0.4 (stable)  7.5kB
    Net_SMTP             1.2.6 (stable) 1.2.8 (stable)  11.1kB
    Net_Socket           1.0.1 (stable) 1.0.6 (stable)  4.5kB
    Net_UserAgent_Detect 2.0.1 (stable) 2.2.0 (stable)  9.8kB
    PEAR                 1.3.6 (stable) 1.4.11 (stable) 277kB
    XML_Parser           1.0.1 (stable) 1.2.7 (stable)  12.7kB
    XML_RPC              1.4.8 (stable) 1.5.0 (stable)  31kB
     
  4. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    what is the full message when you do:

    Code:
    pear upgrade Archive_Tar
    
    If it works okay then do:
    Code:
    pear upgrade pear
    
    and then:
    Code:
    pear upgrade-all
    
     
  5. camillemoussett

    Joined:
    Oct 19, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I tried it alreay... but it is not successful. same error message.

    Code:
    pear upgrade Archive_Tar
    downloading Archive_Tar-1.3.1.tgz ...
    Starting to download Archive_Tar-1.3.1.tgz (15,102 bytes)
    .....done: 15,102 bytes
    failed to write /usr/local/lib/php/Archive/.tmpTar.php
    thanks
     
  6. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    Check permissions:
    Code:
    ls -lh /usr/local/lib/php/Archive/
    
     
  7. camillemoussett

    Joined:
    Oct 19, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Code:
    ls -lh /usr/local/lib/php/Archive/
    total 72K
    drwxr-xr-x   2 root root 4.0K Aug 22 08:05 ./
    drwxr-xr-x  23 root root 4.0K Aug 22 08:04 ../
    -rw-r--r--   1 root root  60K Aug 22 08:05 Tar.php
     
  8. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    I had problems before with pear because /tmp is mounted noexec, had to manually update certain classes
     
  9. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    Wierd that looks okay. I'm guess the pear upgrade pear throws out the archive_tar error aswell.

    I'd suggest as you'll need to do it anyhow doing /scripts/easyapache , then option #7 - making sure 4.4.2 is de-selected and 4.4.4 selected. Make sure only update apache if needed is selected aswell. So that is recompiles as fast as possible.
     
  10. camillemoussett

    Joined:
    Oct 19, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    weird... I have /tmp mounted noexec for quite a while now and it was working before. I'll give it a try with updating to PHP 4.4.4 I'll let you know the result shortly.

    thanks a lot.

    camille
     
  11. camillemoussett

    Joined:
    Oct 19, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    ok got it to work now.

    The update to PHP 4.4.4 helped a bit, now PEAR commands showed error messages like.

    Warning: popen() has been disabled for security reasons in OS/Guess.php on line 246

    I then deactivated the "disable function" in my php.ini config. Now PEAR is running and updating fine.

    big thanks to carluk!

    camille
     
Loading...

Share This Page