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.

Not able to install Pear HTTP_Request

Discussion in 'General Discussion' started by jteerman, Dec 21, 2009.

  1. jteerman

    jteerman Member

    Joined:
    Jul 30, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    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
     
  3. jteerman

    jteerman Member

    Joined:
    Jul 30, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    /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.
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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"?
     
  5. jteerman

    jteerman Member

    Joined:
    Jul 30, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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:

    root@secure02 [~]# /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
     
  6. jteerman

    jteerman Member

    Joined:
    Jul 30, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    There is an interesting article here:
    ServerGrove Blog » Blog Archive » Obscure PEAR error: invalid tgz file

    Following the example, i ran:
    root@secure02 [/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.
     
  7. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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
     
  8. jteerman

    jteerman Member

    Joined:
    Jul 30, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  9. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    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. :)
     
  10. jteerman

    jteerman Member

    Joined:
    Jul 30, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Output is as follows:

    root@secure02 [/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
    root@secure02 [/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
     
Loading...

Share This Page