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.

How to install PHP pear/pecl ?

Discussion in 'General Discussion' started by dber, Mar 15, 2008.

  1. dber

    dber Member

    Joined:
    Feb 10, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I'm currently try to install simplicity, that what I get:

    pdo - for database access (!)

    xcache or apc - for opcode cache and shared mem caching support (!)

    xdebug - Code profiling and extended debugging (!)

    when I'm using cPanel PHP Extensions and Applications Package Installer I'm get:

    Installing "pdo" PHP Extensions and Applications Package

    No releases available for package "pear.php.net/pdo" - package pecl/pdo can be installed with "pecl install pdo"
    Cannot initialize 'channel://pear.php.net/pdo', invalid or missing package file
    Package "channel://pear.php.net/pdo" is not valid
    install failed
    /usr/bin:/bin:/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin


    Installing "pecl install pdo" PHP Extensions and Applications Package

    No releases available for package "pear.php.net/peclinstallpdo"
    Cannot initialize 'channel://pear.php.net/peclinstallpdo', invalid or missing package file
    Package "channel://pear.php.net/peclinstallpdo" is not valid
    install failed
    /usr/bin:/bin:/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/bin


    but the PDO peckage it IS at pear.php.net/pdo

    ani idea how can I install that?
     
  2. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
  3. dber

    dber Member

    Joined:
    Feb 10, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi and thanks for the help,
    but I haven't root access nor SSH, so I tested it with cronjob,
    I've typed this command:
    Code:
    pecl install pdo
    and receive that output:
    Code:
    downloading PDO-1.0.3.tgz ...
    Starting to download PDO-1.0.3.tgz (52,613 bytes)
    .............done: 52,613 bytes
    12 source files, building
    running: phpize
    Configuring for:
    PHP Api Version:         20041225
    Zend Module Api No:      20060613
    Zend Extension Api No:   220060519
    building in /var/tmp/pear-build-xun/PDO-1.0.3
    running: /home/xun/tmp/pear/PDO/configure
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details.
    ERROR: `/home/xun/tmp/pear/PDO/configure' failed
    
    in the folder '/home/xun/tmp/' the only folder that related is 'pear'.
    in the folder '/home/xun/tmp/pear/' there is only one folder called 'cache', and inside 'cache' there are a lot of pairs (of files) like:
    Code:
    ffda9d1eda5d9c9cfb035e387f3cc06arest.cachefile
    ffda9d1eda5d9c9cfb035e387f3cc06arest.cacheid
    What can I do? I didn't understand what was the problem?
     
  4. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Are you trying to install it via jailed shell? You should contact your host and ask them to see that it's installed properly (if they allow it). You're most likely (hopefully) not going to be able to compile it from tmp...
     
  5. dber

    dber Member

    Joined:
    Feb 10, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    what do you mean by 'jailed shell'?
    so it's impossible from the crontab?

    any other idea? :confused:
    because my reseller don't have permission to do that and he can't contact the support (they require at least VPS to receive support....)
     
  6. Billa

    Billa Member

    Joined:
    May 2, 2007
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Seems you are installing that without having root access. You will need root access to get that module installed. Ask your admin of the server to get that done for you.
     
  7. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Where are you typing these commands if you don't have root access or SSH (jailed)? I'm confused.. "Jailed Shell" is SSH access provided to people so that they can use the command line on their local space only. You won't be able to install things server-wide, since you are essentially "jailed" to your own home directory.
     
  8. dber

    dber Member

    Joined:
    Feb 10, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    as I said, I've typed into the crontab and set it to work one time - right after I typed it.

    well, thanks for anyone that tried to help :)

    I think I'll contact the admin....
     
  9. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    You know I totally missed that you said cronjob. Yeah, that's not going to get it done. GL with your host, they should help you out. ;)
     
  10. dber

    dber Member

    Joined:
    Feb 10, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    a friends of mine redirect me to that page:
    http://pear.php.net/manual/en/installation.shared.php

    I can understand the instructions but since I'm not the most technical guy, it'll take me a lot of time I want that one of you will just take a look at this and say me if that will help me.

    just a clarification:
    that page describe how to install the PEAR itself, I don't know if I have to do that, isn't it the same as the 'PHP Extensions and Applications Package Installer' of cPanel?
    but maybe I can use the instructions and do the same with other extensions?

    of course, I know anyone of you doesn't owes me anything nor take responsibility for his advices, I'm just asking your help and I'm grateful even for the previous replies themselves.

    thanking you in advance,
    dber
     
  11. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Have you tried that yet? Should work fine. Was your host unwilling to install the needed package for you?
     
  12. dber

    dber Member

    Joined:
    Feb 10, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page