PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Could not find Pear DB library

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration
View previous topic :: View next topic  
Author Message
sruedat



Joined: 21 Jan 2010
Posts: 2

PostPosted: Thu Jan 21, 2010 8:49 pm    Post subject: Could not find Pear DB library Reply with quote

Hello, I'm trying to implement a module in my webmail server (squirrelmail and ispconfig3) who permits change the password count to the users.
This module use pear and DB package...

I use linux (opensuse 11.1)
This is my pear list:
Quote:

Installed packages, channel pear.php.net:
=========================================
Package Version State
Auth_SASL 1.0.3 stable
Console_Getopt 1.2.3 stable
DB 1.7.13 stable
MDB2 2.4.1 stable
Mail 1.1.14 stable
Net_SMTP 1.4.0 stable
Net_Socket 1.0.9 stable
PEAR 1.9.0 stable
Structures_Graph 1.0.3 stable
XML_Parser 1.3.2 stable
XML_Util 1.2.1 stable


This is the location of DB.php:
Quote:

/usr/local/lib/php/DB.php
/home/user/pear/pear/php/DB.php
/tmp/pear/cache/DB-1.7.13/DB.php
/tmp/pear/download/DB-1.7.13/DB.php


This is my include path in the apache server:
Quote:

include_path = ".:/usr/share/php5:/usr/share/php5/PEAR:/usr/local/lib/php/:/var/lib/pear/:/home/user/pear/pear/php/"


This is the script: (I'm not the owner of this script, it has been developed for other persons and it work's)

Quote:

function csp_get_pear_db()
{

global $csp_debug;

load_config('change_sqlpass', array('config.php'));


// mask include errors if not in debug mode
//
if ($csp_debug)
$if_statement = 'return !include_once(\'DB.php\');';

else
$if_statement = 'return !@include_once(\'DB.php\');';

if (eval($if_statement))
{
global $color;
bindtextdomain('change_sqlpass', SM_PATH . 'locale');
textdomain('change_sqlpass');
$text = _("Could not find Pear DB library");
bindtextdomain('squirrelmail', SM_PATH . 'locale');
textdomain('squirrelmail');
plain_error_message($text, $color);
exit;
}

}


And this is the response of the webmail
Quote:

ERROR:
Could not find Pear DB library


this is the apache log file:
Quote:

[Thu Jan 21 21:03:51 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[Thu Jan 21 21:03:51 2010] [notice] Apache/2.2.10 (Linux/SUSE) mod_ssl/2.2.10 OpenSSL/0.9.8h PHP/5.2.11 with Suhosin-Patch mod_mono/2.0 configured -- resuming normal operations

What am I doing wrong?
Thanks.
Back to top
View user's profile Send private message
sruedat



Joined: 21 Jan 2010
Posts: 2

PostPosted: Fri Jan 22, 2010 12:33 pm    Post subject: I solved it Reply with quote

There was a problem with the pear config...

Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Installation, Upgrading & Configuration All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement