Oct 19, 2004
15
0
151
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.
 
Last edited:

carluk

Well-Known Member
Sep 2, 2003
162
0
166
what does the following show?

Code:
pear list-upgrades
 
Oct 19, 2004
15
0
151
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
 

carluk

Well-Known Member
Sep 2, 2003
162
0
166
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
 
Oct 19, 2004
15
0
151
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
 

carluk

Well-Known Member
Sep 2, 2003
162
0
166
Check permissions:
Code:
ls -lh /usr/local/lib/php/Archive/
 
Oct 19, 2004
15
0
151
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
 

carluk

Well-Known Member
Sep 2, 2003
162
0
166
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.
 
Oct 19, 2004
15
0
151
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
 
Oct 19, 2004
15
0
151
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