[Web-cyradm] PHP Fatal error: Class 'DB' not found
Carles Ucher
cucher at fedefarm.es
Wed Jan 9 17:47:56 CET 2008
Finally I have found the solution (I think),
I'm using SUSE 10.2, with Yast I have installed the package Pear
(php5-pear 5.2.0), we can found the files in /usr/share/php5/PEAR. From
my original package 1.7.14RC1 I have copied the files DB.php and
directory DB into /usr/share/php5/PEAR.
It seems that now works well, I'm able to login and I can create new
domains and user accounts.
Best Regards.
Carles
Carles Ucher escribió:
> I have found a possible solution for PHP Fatal error: Class 'DB' not
> found. I downloaded from http://pear.php.net/package/DB/download the
> 1.7.14RC1 pear database package. I have copied the files of the
> package in the path /usr/share/php5.
> In my include_path from phpinfo () I have:
> .:/usr/share/php5:/usr/share/php5/PEAR
>
> # ls -l /usr/share/php5/PEAR
> total 56
> drwxr-xr-x 2 root root 4096 ene 9 12:58 DB
> -rw-rw-r-- 1 500 500 42793 sep 21 16:18 DB.php
> drwxr-xr-x 2 root root 4096 ene 9 12:58 doc
> drwxr-xr-x 3 root root 4096 ene 9 12:58 tests
>
>
> Now I don't have errors in /var/log/apache2/error_log but I can't
> login the users!!!
> Every time that I try to login with another user I return to the login
> page.
>
> I found the same post in 2004 here:
> http://www.web-cyradm.org/pipermail/web-cyradm/2004-August/017824.html
> ... but nobody has contributed any solution. Plase Help!
>
> Thanks in advance.
> Regards C.Ucher
>
> Carles Ucher escribió:
>> Hi list,
>>
>> This is my first e-mail in this comunity.
>> I'm following the Luc The low howto from
>> http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html
>> Howto
>>
>> Every time that I try to login with an user shows the following error:
>>
>> mail:/var/log/apache2 # tail -f -n20 error_log
>> [Wed Jan 09 11:28:33 2008] [error] [client XXX.XXX.XXX.XXX] PHP Fatal
>> error: Class 'DB' not found in
>> /srv/www/htdocs/web-cyradm/lib/crypto.php on line 27, referer:
>> http://www.mydomain.com/web-cyradm/index.php
>> There is no logs in the logfile web-cyradm-login.log
>>
>> My conf.php:
>>
>> $DEFAULTLANG = "es_ES";
>> # The Cyrus login stuff
>> $CYRUS = array(
>> 'HOST' => 'localhost',
>> 'PORT' => 143,
>> 'ADMIN' => 'cyrus',
>> 'PASS' => 'secret'
>> );
>>
>> $DB = array(
>> 'TYPE' => 'mysql',
>> 'USER' => 'mail',
>> 'PASS' => 'secret',
>> 'PROTO' => 'unix', // set to "tcp" for TCP/IP or unix
>> 'HOST' => 'localhost',
>> 'NAME' => 'mail'
>> );
>>
>> $LOG_DIR = "/var/log/cyradm/";
>> $CRYPT = "crypt";
>> $DOMAIN_AS_PREFIX = 0;
>> $PASSWORD_CHANGE_METHOD = "sql";
>> error_reporting(E_ERROR);
>>
>> $VERSION="0.5.4";
>> $RESERVED="postmaster,root";
>>
>>
>>
>>
>>
>> I would appreciate for any help
>> Regards C.Ucher
>> _______________________________________________
>> This mailing list is hosted and supported
>> by bit-heads GmbH | http://www.bit-heads.ch
>>
>> _______________________________________________
>> Web-cyradm mailing list
>> Web-cyradm at web-cyradm.org
>> http://www.web-cyradm.org/mailman/listinfo/web-cyradm
>>
> _______________________________________________
> This mailing list is hosted and supported
> by bit-heads GmbH | http://www.bit-heads.ch
>
> _______________________________________________
> Web-cyradm mailing list
> Web-cyradm at web-cyradm.org
> http://www.web-cyradm.org/mailman/listinfo/web-cyradm
>
More information about the Web-cyradm
mailing list