Koozali.org: home of the SME Server

PEAR Problem [SOLVED]

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
PEAR Problem [SOLVED]
« on: August 02, 2007, 07:39:39 PM »
I try to install phprojekt on my sme V7.2 server. But every time it comes to a part where I need some PEAR modules I get this error:

Error: PEAR::HTTP_WebDAV_Server could no be found!
Search path: .:./:./pear/:.:/usr/share/pear-addons:/usr/share/pear

But PEAR::HTTP_WebDAV_Server is definitly installed does someon has any idea why I get this error, and how I can solve this problem?

Offline mrjhb3

  • *
  • 1,188
  • +0/-0
    • John Bennett Services
Re: PEAR Problem
« Reply #1 on: August 02, 2007, 10:27:10 PM »
Quote from: "crusader"
I try to install phprojekt on my sme V7.2 server. But every time it comes to a part where I need some PEAR modules I get this error:

Error: PEAR::HTTP_WebDAV_Server could no be found!
Search path: .:./:./pear/:.:/usr/share/pear-addons:/usr/share/pear

But PEAR::HTTP_WebDAV_Server is definitly installed does someon has any idea why I get this error, and how I can solve this problem?


On a default 7.2 load this is not installed.  Are you sure you installed it?  Please do a:
pear list
and confirm you can see it.  If not, then it's not installed and you will need to - pear install channel://pear.php.net/HTTP_WebDAV_Server-1.0.0RC4 to install it as it is still a beta package, or create yourself a set of RPMS and put then in the correct place.  

JOhn
......

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
Re: PEAR Problem
« Reply #2 on: August 02, 2007, 11:10:06 PM »
Quote from: "mrjhb3"

On a default 7.2 load this is not installed.  Are you sure you installed it?  Please do a:
pear list
and confirm you can see it.  If not, then it's not installed and you will need to - pear install channel://pear.php.net/HTTP_WebDAV_Server-1.0.0RC4 to install it as it is still a beta package, or create yourself a set of RPMS and put then in the correct place.  

JOhn


this is was pear list is printing:

Installed packages, channel pear.php.net:
=========================================
Package            Version State
Archive_Tar        1.3.2   stable
Console_Getopt     1.2.3   stable
DB                 1.7.12  stable
HTTP               1.4.0   stable
HTTP_Request       1.4.1   stable
HTTP_WebDAV_Client 0.9.7   beta
HTTP_WebDAV_Server 0.99.1  beta
MDB2               2.4.1   stable
Mail               1.1.14  stable
Net_SMTP           1.2.10  stable
Net_Socket         1.0.8   stable
Net_URL            1.0.15  stable
PEAR               1.6.1   stable
Structures_Graph   1.0.2   stable
XML_Parser         1.2.8   stable
XML_RPC            1.5.1   stable

So HTTP_WebDAV_Server is definitly installed

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
PEAR Problem [SOLVED]
« Reply #3 on: August 03, 2007, 12:44:59 AM »
Ok, at least I find out that it must have something to do with the search path in some way's cause if I copy the complete pear dir under my applications dir it works. Strangest thing is that the include_path does have /usr/share/pear as option which should enable it to find pear modules, but it doesn't

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
PEAR Problem [SOLVED]
« Reply #4 on: August 03, 2007, 11:59:27 AM »
Quote from: "crusader"
Ok, at least I find out that it must have something to do with the search path in some way's cause if I copy the complete pear dir under my applications dir it works. Strangest thing is that the include_path does have /usr/share/pear as option which should enable it to find pear modules, but it doesn't
It has to do with the php_basedir restrictions, the path to the PEAR libraries is proabably not in the PHPBaseDir variable for the ibay from which you are running the PEAR library. Have a look at the wiki, I believe that there is a FAQ or Howto for configuring the PHPBaseDire setting.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline crusader

  • ****
  • 71
  • +0/-0
    • http://www.far-galaxy.de
PEAR Problem [SOLVED]
« Reply #5 on: August 03, 2007, 07:23:07 PM »
Thank you, this hint did the trick.
It was really the open_basedir option which was preventing my application from accessing the pear dir.