Roundcube Community Forum

 

Missing PEAR

Started by dwj, July 15, 2008, 12:58:17 PM

Previous topic - Next topic

dwj

Hi,
im trying to install Rouncube on Centos with php 5.2.6.
As i start the installer i get an error from missing pear packages:


PEAR:  NOT OK(Failed to load PEAR.php; See http://pear.php.net)
DB:  NOT AVAILABLE(Use MDB2 instead)
MDB2:  NOT OK(Failed to load MDB2.php; See http://pear.php.net/package/MDB2)
Net_SMTP:  NOT OK(Failed to load Net/SMTP.php; See http://pear.php.net/package/Net_SMTP)
Mail_mime:  NOT OK(Failed to load Mail/mime.php; See http://pear.php.net/package/Mail_mime)
iilConnection:  NOT OK(Failed to load lib/imap.inc)


Anyway pear and extensions are installed, so i suppose it's an inclue path problem... any hint?

thanx in advance!
Marco

bpat1434

Is /usr/share/pear in your include path in php?  Are you 100% sure pear itself is installed?  I.e. you can use "pear install MDB2" and install the MDB2 package?

If you have shell access, and you can run this, what's its output?

which pear
 
 

dwj

Hi and thanx for the reply

which pear returns

/usr/bin/pear

and my include path is in etc/php.ini

include_path = ".:/usr/share/pear"

thanx!

dwj

#3
OK got it.

looking at this post
http://php.groups.vox.com/library/post/6a00c2251d8a1b549d00e398d782d70004.html

i found it was an open_basedir issue.

On my plesk install i edited the file "zz010_psa_httpd.conf"
and add "/usr/share/pear" to the base dir for common subdomain webmail.*

now pear is found

looking forward for other errors LOL

EDIT: now i got illConnection too, with a symlink
ln -s program/lib lib

bpat1434

Yeah, Plesk can be a bugger sometimes in finding things like that.  I had an issue trying to get the Zend Framework in a central location on my Plesk server so that I could have one ZF location, but use it across all sites and upgrade it once and have all sites be using the new version ;)

Are you having a problem with illConnection?   illConnection should just be a roundcube php file include.  There should be no inclusion of a c-based file.  This being the reason they ported it to PHP, so they were platform independent.