Not able to install Pear HTTP_Request

jteerman

Member
Jul 30, 2008
14
0
51
I have had my first cPanel server running for several months. I've recently installed a second server with Centos 5.4 and WHM 11.25. I just moved an account from my first server to the new server. This account has been active for several months and has been using phpList without issue. When my customer attempts to send a message that requests a web page, they are receiving a HTTP_Request error.

From his control panel, I've selected Software / PHP Pear Packages. When I attempt to install HTTP_Request (1.4.4 Stable) I get this error:

WARNING: "pear/HTTP_Request" is deprecated in favor of "pear/HTTP_Request2"
WARNING: "pear/Net_URL" is deprecated in favor of "pear/Net_URL2"
downloading HTTP_Request-1.4.4.tgz ...
Starting to download HTTP_Request-1.4.4.tgz (17,109 bytes)
......done: 17,109 bytes
Could not get contents of package "/home/account_name/tmp/pear/cache/HTTP_Request-1.4.4.tgz". Invalid tgz file.
Download of "pear/HTTP_Request" succeeded, but it is not a valid package archive
Error: cannot download "pear/HTTP_Request"
Download failed
install failed
/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin

Can anyone help me with this install?

Thanks!
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
If SSH access is available, please let us know the output from the following commands:
Code:
# /usr/local/bin/pear -V
# /usr/bin/pear -V
I would try to ensure that PEAR is updated to the latest version to minimize possible issues.

Via root SSH access, the following commands should help to accomplish updating PEAR:
Code:
# /usr/local/bin/pear upgrade PEAR
# /usr/bin/pear upgrade PEAR
At the time of writing the latest version is "1.9.0" as reported by the following site: http://pear.php.net/package/PEAR/download
 

jteerman

Member
Jul 30, 2008
14
0
51
/usr/bin/pear -V returns:

PEAR Version: 1.7.2
PHP Version: 5.2.12
Zend Engine Version: 2.2.0

I ran /usr/bin/pear upgrade PEAR with the following output:

downloading PEAR-1.9.0.tgz ...
Starting to download PEAR-1.9.0.tgz (291,634 bytes)
.............................................................done: 291,634 bytes
downloading Archive_Tar-1.3.3.tgz ...
Starting to download Archive_Tar-1.3.3.tgz (18,119 bytes)
...done: 18,119 bytes
downloading Structures_Graph-1.0.3.tgz ...
Starting to download Structures_Graph-1.0.3.tgz (30,191 bytes)
...done: 30,191 bytes
downloading XML_Util-1.2.1.tgz ...
Starting to download XML_Util-1.2.1.tgz (17,729 bytes)
...done: 17,729 bytes
upgrade ok: channel://pear.php.net/Archive_Tar-1.3.3
upgrade ok: channel://pear.php.net/Structures_Graph-1.0.3
upgrade ok: channel://pear.php.net/XML_Util-1.2.1
upgrade ok: channel://pear.php.net/PEAR-1.9.0
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"


When i attempt to install HTTP_Request 1.4.4 thru cPanel, I get the same result as before the PEAR upgrade.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
/usr/bin/pear -V returns:

PEAR Version: 1.7.2
PHP Version: 5.2.12
Zend Engine Version: 2.2.0

I ran /usr/bin/pear upgrade PEAR with the following output:

downloading PEAR-1.9.0.tgz ...
Starting to download PEAR-1.9.0.tgz (291,634 bytes)
.............................................................done: 291,634 bytes
downloading Archive_Tar-1.3.3.tgz ...
Starting to download Archive_Tar-1.3.3.tgz (18,119 bytes)
...done: 18,119 bytes
downloading Structures_Graph-1.0.3.tgz ...
Starting to download Structures_Graph-1.0.3.tgz (30,191 bytes)
...done: 30,191 bytes
downloading XML_Util-1.2.1.tgz ...
Starting to download XML_Util-1.2.1.tgz (17,729 bytes)
...done: 17,729 bytes
upgrade ok: channel://pear.php.net/Archive_Tar-1.3.3
upgrade ok: channel://pear.php.net/Structures_Graph-1.0.3
upgrade ok: channel://pear.php.net/XML_Util-1.2.1
upgrade ok: channel://pear.php.net/PEAR-1.9.0
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"

When i attempt to install HTTP_Request 1.4.4 thru cPanel, I get the same result as before the PEAR upgrade.
When performing the same PEAR upgrade using the path "/usr/local/bin/pear" was the result the same as when using the path "/usr/bin/pear"?
 

jteerman

Member
Jul 30, 2008
14
0
51
Upgrading with /usr/local/bin/pear upgrade PEAR returns:
Nothing to upgrade

The output of /usr/local/bin/pear -V and
/usr/bin/pear -V are both:

[email protected] [~]# /usr/local/bin/pear -V
PEAR Version: 1.9.0
PHP Version: 5.2.12
Zend Engine Version: 2.2.0
Running on: Linux domain.net 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:18:27 EST 2009 i686
 

jteerman

Member
Jul 30, 2008
14
0
51
There is an interesting article here:
ServerGrove Blog » Blog Archive » Obscure PEAR error: invalid tgz file

Following the example, i ran:
[email protected] [/home/teermans/tmp/pear/cache]# pear install --offline HTTP_Request-1.4.4.tgz
pear/HTTP_Request requires package "pear/Net_URL" (version >= 1.0.12)
pear/HTTP_Request requires package "pear/Net_Socket" (version >= 1.0.7)

I ran pear install --offline for each of the packages.

Under Software >> PHP Pear Packages, HTTP_Request isn't shown, but the other two packages now reflect the updated versions.

I then attempted to send a message using phpList that required a URL to be loaded for the message. This message sent without error.

I'm assuming that this fixed my problem, but didn't update cPanel.

Is there an update needed for cPanel for this issue?

Any feedback on this would be appreciated.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
There is an interesting article here:
ServerGrove Blog » Blog Archive » Obscure PEAR error: invalid tgz file

Following the example, i ran:
[email protected] [/home/teermans/tmp/pear/cache]# pear install --offline HTTP_Request-1.4.4.tgz
pear/HTTP_Request requires package "pear/Net_URL" (version >= 1.0.12)
pear/HTTP_Request requires package "pear/Net_Socket" (version >= 1.0.7)

I ran pear install --offline for each of the packages.

Under Software >> PHP Pear Packages, HTTP_Request isn't shown, but the other two packages now reflect the updated versions.

I then attempted to send a message using phpList that required a URL to be loaded for the message. This message sent without error.

I'm assuming that this fixed my problem, but didn't update cPanel.

Is there an update needed for cPanel for this issue?

Any feedback on this would be appreciated.
Before using the off-line install option was an independent update of "Net_URL" and "Net_Socket" attempted via WHM, cPanel, or CLI/SSH access? If yes, did this fail with a specific error, like that of the "HTTP_Request" module installation?

Is the feature "Magic User Loader" enabled for Pear? This can be toggled using the following menu path in WHM:
WHM: Main >> Software >> Module Installers >> PHP Extensions and Applications Package [Manage]
Documentation: PHP Extensions and Applications Package
 

jteerman

Member
Jul 30, 2008
14
0
51
Prior to the offline update, I did not attempt to update the packages with WHM, cpanel or SSH. Also, the Majic User Loader was disabled. I just enabled it.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
Prior to the offline update, I did not attempt to update the packages with WHM, cpanel or SSH. Also, the Majic User Loader was disabled. I just enabled it.
It will help to confirm the access permissions on the binaries tar and gzip, verifying if they are set as executable. Please let us know the output of the following two commands that may be used to confirm the existing access permissions, including the executable ("+x") status:
Code:
# stat /bin/tar
# stat /bin/gzip /usr/bin/gzip
Thank you for the details thus far; it is greatly appreciated. :)
 

jteerman

Member
Jul 30, 2008
14
0
51
Output is as follows:

[email protected] [/home/jeff]# stat /bin/tar
File: `/bin/tar'
Size: 229944 Blocks: 472 IO Block: 4096 regular file
Device: 808h/2056d Inode: 352388 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2009-12-23 01:00:01.000000000 -0500
Modify: 2007-08-23 09:31:12.000000000 -0400
Change: 2009-12-18 04:04:07.000000000 -0500
[email protected] [/home/jeff]# stat /bin/gzip /usr/bin/gzip
File: `/bin/gzip'
Size: 62100 Blocks: 144 IO Block: 4096 regular file
Device: 808h/2056d Inode: 352440 Links: 3
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2009-12-22 22:49:27.000000000 -0500
Modify: 2008-05-28 12:19:25.000000000 -0400
Change: 2009-12-18 04:04:11.000000000 -0500
File: `/usr/bin/gzip' -> `../../bin/gzip'
Size: 14 Blocks: 8 IO Block: 4096 symbolic link
Device: 805h/2053d Inode: 1005109 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2009-12-23 04:29:27.000000000 -0500
Modify: 2009-12-17 10:21:00.000000000 -0500
Change: 2009-12-17 10:21:00.000000000 -0500