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.

Problem using "PHP Extensions and Applications Package Installer"

Discussion in 'General Discussion' started by bsprogs, Jun 26, 2007.

  1. bsprogs

    bsprogs Member

    Joined:
    Jun 26, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I'm using cPanel 11 and I'm trying to install the PHP extension "File_Archive (1.5.3)".

    Under the "PHP Extensions and Applications Package Installer" option, I click on
    "PHP Extension(s) and Application(s) Available for Installation". Then I click Install next to "File_Archive (1.5.3)."

    On the next page I get the following error:
    I did a search but I couldn't come up with much on this issue.

    Thanks,

    Steven
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Are you doing this within WHM or cPanel?

    Which version of WHM/cPanel?
     
  3. bsprogs

    bsprogs Member

    Joined:
    Jun 26, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I'm doing this with cPanel. However, I have access to WHM. Do you think I would have better luck with that?

     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    From the first post I can tell cPanel is using /usr/bin/php, which is often (before PHP 5.2.3) the CGI binary, while the CLI version is in /usr/local/bin

    If you have access to SSH, try symlinking /usr/local/bin/php to /usr/bin/php and see if that resolves the error (you won't want to leave it that way, just do it long enough to test the PEAR install).


    I thought we had fixed this problem, maybe it's not in Release yet, only Current.....
     
  5. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    14754+ will prefer /usr/local/bin/pear over /usr/bin/pear
     
  6. bsprogs

    bsprogs Member

    Joined:
    Jun 26, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I wanted to let you guys know I greatly appreciate the help! I know you dont have to do this :)

    Edit: I re-read that a few times to understand what was actually being said. It makes much more sense.

    I tried linking but it gave me an error: "-jailshell: syntax error near unexpected token `/usr/local/bin/php' "

    Nick, are you referring to the cPanel build?
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    You need real SSH access, not JailShell, sorry.

    Yes, Nick referred to the build number.
     
  8. Yojance

    Yojance Registered

    Joined:
    Jun 27, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I have this very same issue with my current host. I went looking for another host, hoping that would be fixed, and what do you know, All hosts I tried give me the same error.

    There should be a BIG STICKY POST showing you how to diagnose and fix this problem, I bet you that those hosting companies have a lot of unsatisfied, angry customers, like me.
     
  9. bsprogs

    bsprogs Member

    Joined:
    Jun 26, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    ok, my server admin is giving me full SSH access.

    We didn't run any commands on the server yet but I started getting a new error:

     
  10. bsprogs

    bsprogs Member

    Joined:
    Jun 26, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I guess it's the pre-programmed download url thats not correct for the zip_archive installation file.
    If that is the error, I hope it helps the cPanel developers work out another error for the next build :)
     
  11. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    There is no stable version of Archive_Zip
     
  12. bsprogs

    bsprogs Member

    Joined:
    Jun 26, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1

    Hmm, thats interesting. What next? :confused:

    EDIT: At first I was trying to install File_Archive but I realized I've been needing to install Archive_Zip. Everything from this post on will be regarding the attempt to install Archive_Zip.

    The archive_zip website (http://pear.php.net/package/Archive_Zip/) suggests using the PECL Zip extension (http://pecl.php.net/package/zip)

    Is there a way to install this with cPanel or will it have to be installed directly?
     
    #12 bsprogs, Jun 28, 2007
    Last edited: Jun 28, 2007
  13. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    I know this is an old thread, but for months I was having this same issue on one of our servers, and the problem was actually with php being compiled with the '--disable-cli' option from a manual compile for suPHP (before it was offered in EA). When I recompiled PHP without that switch, the PEAR installer started working.

    You can tell by checking your phpinfo file or running 'php -v' on command line to see if it says this:

    PHP 5.2.5 (CGI)

    If it does, it's likely that the cli is disabled and is the reason that the pear installer is not working. The way it should look is:

    PHP 5.2.5 (cli)


    This might not be the case for everyone, but I thought I'd mention it if anything was having this issue and the previous solutions mentioned in this threat didn't work.
     
Loading...

Share This Page