#1 (permalink)  
Old 03-15-2008, 06:46 PM
Registered User
 
Join Date: Feb 2008
Posts: 7
dber is on a distinguished road
How to install PHP pear/pecl ?

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

pdo - for database access (!)

Quote:
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 (!)

Quote:
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 (!)

Quote:
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-16-2008, 08:07 AM
serversphere's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 652
serversphere is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-17-2008, 07:55 PM
Registered User
 
Join Date: Feb 2008
Posts: 7
dber is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-17-2008, 11:26 PM
serversphere's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 652
serversphere is on a distinguished road
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-18-2008, 03:13 AM
Registered User
 
Join Date: Feb 2008
Posts: 7
dber is on a distinguished road
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....)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-18-2008, 09:03 AM
Registered User
 
Join Date: May 2007
Posts: 19
Billa is on a distinguished road
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
------------------------------------------------------------------------------------------
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-18-2008, 09:04 AM
serversphere's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 652
serversphere is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-18-2008, 09:58 AM
Registered User
 
Join Date: Feb 2008
Posts: 7
dber is on a distinguished road
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....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-18-2008, 11:50 AM
serversphere's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 652
serversphere is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-29-2008, 06:06 PM
Registered User
 
Join Date: Feb 2008
Posts: 7
dber is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 03-31-2008, 09:40 AM
serversphere's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 652
serversphere is on a distinguished road
Have you tried that yet? Should work fine. Was your host unwilling to install the needed package for you?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 04-13-2008, 07:25 AM
Registered User
 
Join Date: Feb 2008
Posts: 7
dber is on a distinguished road
* 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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:18 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc