View Full Version : [ubuntu] Squirrelmail
March 28th, 2012, 05:15 AM
I have 2 problems with Squirrelmail:
1. installed plugin change_sqlpass but when i change password it said: Could not find Pear DB library.
2. I don't attack a file follow email. It said Could not move/copy file. File not attached
Can you tell me how to config to fix them?
Thank a lot
March 28th, 2012, 01:21 PM
For the first, try adding the php-pear package.
March 29th, 2012, 02:11 AM
I have installed php-pear, pear DB and config like http://www.howtoforge.com/how-to-configure-squirrelmail-to-allow-users-to-change-their-email-passwords-on-an-ispconfig-3-server
Please continue to help
April 5th, 2012, 05:28 PM
It sounds like a path problem.
At the cli, issue the command:
find /usr -name "DB.php"
This will tell you where DB.php was installed
I'm running ISPconfig3 under Ubuntu 11.01 setup using HowTo's Perfect server guide.
To make change_sqlpass work, I had to add the line, marked with + below, to the /usr/share/squirrelmail/plugins/change_sqlpass/function.php file:
// mask include errors if not in debug mode
$if_statement = 'return !include_once(\'DB.php\');';
$if_statement = 'return !@include_once(\'DB.php\');';
bindtextdomain('change_sqlpass', SM_PATH . 'locale');
$text = _("Could not find Pear DB library");
bindtextdomain('squirrelmail', SM_PATH . 'locale');
In addition, I had to change "127.0.0.1" to "localhost" in the /usr/share/squirrelmail/plugins/change_sqlpass/config.php file.
// Theoretically, any SQL database supported by Pear should be supported
// here. The DSN (data source name) must contain the information needed
// to connect to your database backend. A MySQL example is included below.
// For more details about DSN syntax and list of supported database types,
// please see:
$csp_dsn = 'mysql://dbLoginNameHere:dbPasswordHere@localhost/dbispconfig';
After all this, your password should be changed by the change_sqlpass plugin.
If you get an error
This page request could not be verified and appears to have expired.
but the password is still changed, follow the instructions here:
April 12th, 2012, 09:50 AM
Thank for help.
the path DB.php in my server is: /usr/share/php/DB.php
I did like you said but result not different
Anyone have different way?
July 9th, 2012, 03:01 PM
not working for me, still getting error...
October 2nd, 2012, 10:06 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.