Author Topic: Configure password plugin on cpanel server  (Read 151 times)

Offline samuelmf

  • Newbie
  • *
  • Posts: 8
Configure password plugin on cpanel server
« on: July 29, 2020, 01:23:53 PM »
Hi i have installed rouncube manually on a directory on my server
I enabled the password plugin and login with my user and pass, when i use the password menu on the roundcube interface i put the old and the new password and click save, then i get a message with "Could not save new password"

What i need to configure to make it work under server with cpanel?

Offline samuelmf

  • Newbie
  • *
  • Posts: 8
Re: Configure password plugin on cpanel server
« Reply #1 on: July 30, 2020, 12:18:09 AM »
Well i made this work

On this line i put this:
// See README file for list of supported driver names.
$config['password_driver'] = 'cpanel_webmail';

And on the cpanel section i put the right config on the cpanel section

// cPanel Driver options
// --------------------------
// The cPanel Host name
$config['password_cpanel_host'] = 'yourdomain.com';

// The cPanel admin username
$config['password_cpanel_username'] = 'cpaneluser';

// The cPanel admin password
$config['password_cpanel_password'] = 'yourpassword';


At this point i logged in to my cpanel and go to Security/Manage Api Tokens and created a new token and pasted on this section.

// The cPanel admin hash
// If you prefer to use a hash (Remote Access Key) instead of plain password, enter it below.
// Hash takes precedence over password auth.
// You can generate a Remote Access Key in WHM -> Clusters -> Remote Access Key
$config['password_cpanel_hash'] = 'remotekey';


// The cPanel port to use
$config['password_cpanel_port'] = 2087;


// cPanel Webmail Driver options
// -----------------------------
// The cPanel Host name
$config['password_cpanel_webmail_host'] = 'mail.yourdomain.com';

// The cPanel port to use
$config['password_cpanel_webmail_port'] = 2096;

I hope this could help others with the same doubt.