Unable to install any PEAR modules

Serra

Well-Known Member
Oct 27, 2005
267
18
168
Florida
For some reason, I can't install any pear modules via cPanel:

downloading OLE-1.0.0RC2.tgz ...
Starting to download OLE-1.0.0RC2.tgz (13,981 bytes)
.....done: 13,981 bytes
Could not get contents of package "/root/tmp/pear/cache/OLE-1.0.0RC2.tgz". Invalid tgz file.
Download of "pear/OLE" succeeded, but it is not a valid package archive
Error: cannot download "pear/OLE"
Download failed
install failed


I verified that /root/tmp/pear/cache/OLE-1.0.0RC2.tgz exists and is a valid archive. I tried several different packages and I can't install anything.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello,

While you are working on issuing a ticket, could you try the following to see the results:

Code:
pear channel-update pear.php.net
This will update the PEAR channel.

Then run this to see if your existing php.ini file might be the cause:

Code:
cd /usr/local/lib
mv php.ini php.ini.bak120628
/scripts/phpini
At that point, please try to install the PEAR package to see the results. If it works, then please try the following to see the differences in the two php.ini files:

Code:
diff /usr/local/lib/php.ini /usr/local/lib/php.ini.bak120628
Thanks!