morten44 | 29 Apr 2012 22:48
Picon

Re: change_sqlpass not working: ERROR: Could not find Pear DB library


Hi again
I got it to work now :)
This was the fix
http://ubuntuforums.org/showthread.php?t=1948259

Thanks again

morten44 wrote:
> 
> Hi
> I am running Ubuntu 11.10 with ISPConfig Control Panel
> Squirrelmail is working but want users to be able to change passwords
> 
> I followed this instruction to install:  change_sqlpass-3.3-1.2.tar.gz
> http://www.howtoforge.com/how-to-configure-squirrelmail-to-allow-users-to-change-their-email-passwords-on-an-ispconfig-3-server
> 
> I then got the error: Could not find Pear DB library 
> I enabled the debug in the plugin and got additional information:
> Warning: include_once(DB.php): failed to open stream: No such file or
> directory in
> /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) :
> eval()'d code on line 1 Warning: include_once(): Failed opening 'DB.php'
> for inclusion (include_path='.') in
> /usr/share/squirrelmail/plugins/change_sqlpass/functions.php(50) :
> eval()'d code on line 1 
> 
> I ran "pear list" and got the following:
> Archive_Tar         1.3.10  Stable
> Auth                   1.6.2   Stable
(Continue reading)

Tomas Kuliavas | 30 Apr 2012 16:50
Picon
Gravatar

Re: change_sqlpass not working: ERROR: Could not find Pear DB library


morten44 wrote:
> 
> Hi again
> I got it to work now :)
> This was the fix
> http://ubuntuforums.org/showthread.php?t=1948259
> 
It is not a fix, but very crude hack. Please learn how to configure your
local PHP settings correctly.

If you use PHP DSO module in apache, following option will override global
include_path
----
<directory /usr/share/squirrelmail>
    php_value include_path "/usr/share/php"
   # you can put other options here to, if you want better controls for
application
</directory>
----
Just be consistent and keep directory settings in proper location. It can be
set in global scope or for any virtual host you have.

If you continue using "fixes" within application scripts, you will end up
with heavily customized, unportable and unupgradable system. Application
files have nothing to do with your local php include_path settings.

I've confused setting name, but link pointed at proper configuration
directive. If you have 'AllowOverride None' for /usr/share/squirrelmail, all
your .htaccess files are ignored.
(Continue reading)

morten44 | 3 May 2012 00:59
Picon

Re: change_sqlpass not working: ERROR: Could not find Pear DB library


Hi
Thanks for your advise. Yes it makes sence what you say
As soon as I have migrated the whole thing over and all users are up and
running I will look into it

Thanks again for good explenation

Kind Regards
Morten

morten44 wrote:
> 
> Hi again
> I got it to work now :)
> This was the fix
> http://ubuntuforums.org/showthread.php?t=1948259
> 
> Thanks again
> 
> 
> 
> morten44 wrote:
>> 
>> Hi
>> I am running Ubuntu 11.10 with ISPConfig Control Panel
>> Squirrelmail is working but want users to be able to change passwords
>> 
>> I followed this instruction to install:  change_sqlpass-3.3-1.2.tar.gz
>> http://www.howtoforge.com/how-to-configure-squirrelmail-to-allow-users-to-change-their-email-passwords-on-an-ispconfig-3-server
(Continue reading)


Gmane