Author Topic: Missing PEAR  (Read 7010 times)

Offline dwj

  • Newbie
  • *
  • Posts: 3
Missing PEAR
« on: July 15, 2008, 12:58:17 PM »
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:

Code: [Select]

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

Offline bpat1434

  • Administrator
  • Hero Member
  • *****
  • Posts: 673
Missing PEAR
« Reply #1 on: July 15, 2008, 04:40:39 PM »
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
 
  

Offline dwj

  • Newbie
  • *
  • Posts: 3
Missing PEAR
« Reply #2 on: July 16, 2008, 04:02:34 AM »
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!

Offline dwj

  • Newbie
  • *
  • Posts: 3
Missing PEAR
« Reply #3 on: July 16, 2008, 04:20:25 AM »
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
Code: [Select]
ln -s program/lib lib
« Last Edit: July 16, 2008, 04:25:15 AM by dwj »

Offline bpat1434

  • Administrator
  • Hero Member
  • *****
  • Posts: 673
Missing PEAR
« Reply #4 on: July 16, 2008, 07:46:37 AM »
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.