Author Topic: PHP Error: Password plugin: Unable to open driver  (Read 6261 times)

Offline flyaway2122

  • Newbie
  • *
  • Posts: 7
PHP Error: Password plugin: Unable to open driver
« on: November 09, 2010, 01:55:32 AM »
Hi, my roundcube webmail is running smoothly but the password plugin is not, i get this error "Could not save new password" everytime i try to change my password, here is the error log

Quote
PHP Error: Password plugin: Unable to open driver file /home/xx/public_html/mail/plugins//password/drivers/passwd.php in /home/xx/public_html/mail/plugins/password/password.php on line 212 (POST /mail/?_task=settings&_action=plugin.password-save?_task=&_action=)


Please help me, thanks

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
PHP Error: Password plugin: Unable to open driver
« Reply #1 on: November 09, 2010, 02:25:09 AM »
You have wrong value for 'password_driver' config option.

Offline flyaway2122

  • Newbie
  • *
  • Posts: 7
PHP Error: Password plugin: Unable to open driver
« Reply #2 on: November 09, 2010, 02:50:38 AM »
Thanks alec, the value is
Quote
$rcmail_config['password_driver'] = 'passwd';
is it correct ? and i have to place the passwd.inc in : program/steps/settings/ right ? could you guide me if i'm wrong ? i'm newbie and don't know much about that, sorry if i'm wasting your time, i could not find a fully tutorial for a noob like me :(

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
PHP Error: Password plugin: Unable to open driver
« Reply #3 on: November 09, 2010, 02:59:07 AM »
Just read plugin's README file. Then enable plugin in main config and configure the plugin in its config file. No need to move files.

Offline flyaway2122

  • Newbie
  • *
  • Posts: 7
PHP Error: Password plugin: Unable to open driver
« Reply #4 on: November 09, 2010, 03:14:27 AM »
thanks alec, now i got this error
Quote
PHP Error: Password plugin: Unable to execute sudo /usr/sbin/chpasswd 2> /dev/null in /home/xx/public_html/mail/plugins/password/drivers/chpasswd.php on line 0 (POST /mail/?_task=settings&_action=plugin.password-save?_task=&_action=)

is it because of the database ? i'm stucked in this situation for 2 days, installing the roundcube for several times but the problem is not solved :'(
my hosting is hostgator, i'm using cpanel - mysql if this can help

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
PHP Error: Password plugin: Unable to open driver
« Reply #5 on: November 09, 2010, 03:33:55 AM »
So, maybe you should use 'cpanel' driver?

Offline flyaway2122

  • Newbie
  • *
  • Posts: 7
PHP Error: Password plugin: Unable to open driver
« Reply #6 on: November 09, 2010, 04:11:28 AM »
i just reinstalled the roundcube and choose the "cpanel" but i got a new error
Quote
[09-Nov-2010 03:02:20] PHP Warning:  fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/xx/public_html/mail/plugins/password/drivers/cpanel.php on line 43
[09-Nov-2010 03:02:20] PHP Warning:  fsockopen() [function.fsockopen]: unable to connect to ssl://host.domain.com:2082 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /home/xx/public_html/mail/plugins/password/drivers/cpanel.php on line 43


:(
alec, is it possible if i give you my hosting account and you can help me to solve it ? (i'm bothering you so many times - sorry)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
PHP Error: Password plugin: Unable to open driver
« Reply #7 on: November 09, 2010, 12:07:09 PM »
You also have to configure the following options in the /plugins/password/config.inc.php
  • $rcmail_config['password_cpanel_host']
  • $rcmail_config['password_cpanel_username']
  • $rcmail_config['password_cpanel_password']
  • $rcmail_config['password_cpanel_port']
  • $rcmail_config['password_cpanel_ssl']
  • $rcmail_config['password_cpanel_theme']

Offline flyaway2122

  • Newbie
  • *
  • Posts: 7
PHP Error: Password plugin: Unable to open driver
« Reply #8 on: November 10, 2010, 03:59:59 AM »
thanks skaero !!! :eek: so happy that it works now, you are my god 0:)