Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Feb 2008
    Posts
    7

    Default How to install PHP pear/pecl ?

    I'm currently try to install simplicity, that what I get:

    pdo - for database access (!)

    You currently do not have the PDO extension installed, this is required for accesing RDBMS databases such as MySQL or SQLite. See http://php.net/pdo for more information.
    xcache or apc - for opcode cache and shared mem caching support (!)

    You currently do not have an opcode cache installed, Simplicity makes extensive use of caching and installing either of the supported opcode caches (APC or XCache) will give great performance improvements. See http://php.net/apc for APC or http://xcache.lighttpd.net/ for more details on XCache.
    xdebug - Code profiling and extended debugging (!)

    XDebug allows extended debugging, code coverage, tracing and profiling. Simplicity integrates these features, although this is currently quite basic there are plans to extend this in the future. See http://xdebug.org/ for more information.
    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. #2
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Try just pear install PDO, if not then have a look at this link:

    http://www.oracle.com/technology/pub...o_oracle5.html

    it describes various ways to grab and install PDO.

  3. #3
    Member
    Join Date
    Feb 2008
    Posts
    7

    Default

    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. #4
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    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. #5
    Member
    Join Date
    Feb 2008
    Posts
    7

    Default

    Quote Originally Posted by serversphere View Post
    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...
    what do you mean by 'jailed shell'?
    so it's impossible from the crontab?

    any other idea?
    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. #6
    Member
    Join Date
    May 2007
    Posts
    19

    Default

    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.
    ------------------------------------------------------------------------------------------
    Dedicated server System administration - Technical support issues
    Cheap Dedicated server
    ------------------------------------------------------------------------------------------

  7. #7
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    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. #8
    Member
    Join Date
    Feb 2008
    Posts
    7

    Default

    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. #9
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    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. #10
    Member
    Join Date
    Feb 2008
    Posts
    7

    Default

    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. #11
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Have you tried that yet? Should work fine. Was your host unwilling to install the needed package for you?

  12. #12
    Member
    Join Date
    Feb 2008
    Posts
    7

    Default

    * problem solved *
    no, my host is a reseller so he couldn't install, he haven't the permissions.

    anyway, at the end I found those simple instructions describes how to install additional pear peckages

    thanks a millions, serversphere, you really helped me
    and also thanks to Billa!

Similar Threads & Tags
Similar threads

  1. have no pear and no pecl
    By habakuk in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-20-2009, 04:52 AM
  2. PECL Install - odbtp
    By KrystalS in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-29-2009, 06:08 AM
  3. bug install php pear soap
    By Caluso93 in forum New User Questions
    Replies: 0
    Last Post: 09-06-2007, 01:41 PM
  4. Pear and Pecl counldn't install
    By nazoreen in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-04-2007, 09:54 AM
  5. PHP PEAR install
    By wadearnold in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-16-2005, 10:47 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube