Roundcube Community Forum

 

Password plugin and CPanel

Started by beatnik, November 02, 2009, 06:48:13 PM

Previous topic - Next topic

taxi

Quote from: skaero;24545No they isn't anything that needs to be changed in cpanel. If your cpanel url has a http:// not a https:// then $rcmail_config['password_cpanel_ssl'] needs to be false, if that's fine post the error from your error log.

The errors log file in the log folder is blank. There is no log being created for the same.

Yann

#31
Quote from: taxi;24538Hi,

I am new to this. I am not able to save the password even after activating the password plugin. It says "could not save password". I have the following settings set in plugins/password/config.inc.php

Currently i have the following settings.

// cPanel Driver options
// --------------------------
// The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'localhost';

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

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

// The cPanel port to use
$rcmail_config['password_cpanel_port'] = 2083;

// Using ssl for cPanel connections?
$rcmail_config['password_cpanel_ssl'] = true;

// The cPanel theme in use
$rcmail_config['password_cpanel_theme'] = 'hostmonster';

$rcmail_config['password_driver'] = 'cpanel';

I have tried entering my username, password & the host for the cPanel but did not help. What am i doing wrong?

Pls help.

Just change  'localhost'  in the line bellow:
 
  // The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'localhost';

to  'hostXXX.hostmonster.com'  (XXX should be the numbers in your Cpanel ulr)

For hostmonster, you should be using the username that shows while login to hostmonster Cpanel, and the password its password (pswrd used to login to Cpanel).
That's how i set mine mine up and it works ever since like a charm.

I don't about any other hosts, but this is what you should do if you host with hostmonster after enabling the password plugin

-----------------------

$rcmail_config['password_cpanel_host'] = 'hostXXX.hostmonster.com'; (XXX = numbers in your Cpanel url)
$rcmail_config['password_cpanel_username'] = 'your cpanel username'; (username found on left while login to your Cpanel on hostmonster.com)
$rcmail_config['password_cpanel_password'] = 'your cpanel password'; (password used to login to your hostmonter.com's Cpanel)
$rcmail_config['password_cpanel_port'] = Port; (port found in your hostmonter.com's Cpanel url)
$rcmail_config['password_cpanel_theme'] = 'hostmonster'; (= hostmonster)

x3digital

Quote from: skaero;22785You would set the theme in the plugins/password/config.inc.php file on the $rcmail_config['password_cpanel_theme'] line. To enable the plugin add it to the $rcmail_config['plugins'] line in the config/main.inc.php.

I am having trouble getting the password tab to show up. I believe I have made all the necessary chages to the config.inc.php file, but I am unsure what to do in the config/main.inc.php file.  Within that file I have this:

// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array();

I am not sure what to change it to in order to enable the plugin..?

Thanks

taxi

It is working great now.

Thanks for the help everyone.

Yann

Quote from: taxi;24641It is working great now.

Thanks for the help everyone.

Glad we can help

blair.sawler

I have  this set up with cpanel, and have the following variables. It is still not working... just says "could not save new password". Here is what I have set. What am I missing?

$rcmail_config['password_driver'] = 'cpanel';

// Determine whether current password is required to change password.
// Default: false.
$rcmail_config['password_confirm_current'] = true;

// Require the new password to be a certain length.
// set to blank to allow passwords of any length
$rcmail_config['password_minimum_length'] = 0;
 
// Require the new password to contain a letter and punctuation character
// Change to false to remove this check.
$rcmail_config['password_require_nonalpha'] = false;


// cPanel Driver options
// --------------------------
// The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'host98.hostmonster.com';

// The cPanel admin username
$rcmail_config['password_cpanel_username'] = 'myusername';

// The cPanel admin password
$rcmail_config['password_cpanel_password'] = 'mypassword';

// The cPanel port to use
$rcmail_config['password_cpanel_port'] = 2083;

// Using ssl for cPanel connections?
$rcmail_config['password_cpanel_ssl'] = true;

// The cPanel theme in use
$rcmail_config['password_cpanel_theme'] = 'hostmonster';

SKaero

Check you CPanel username and password if they are correct check your RoundCube's error log in /logs

blair.sawler

Quote from: skaero;24808Check you CPanel username and password if they are correct check your RoundCube's error log in /logs

Error log was not updated, so nothing written in there.

Maybe I will try uninstalling this from the server and reinstalling everything.

Frustrating as heck!

Yann

#38
Quote from: blair.sawler;24810Error log was not updated, so nothing written in there.

Maybe I will try uninstalling this from the server and reinstalling everything.

Frustrating as heck!

I'm not sure if you have the right port number on there. Check the port number again in your hostmonter cpanel url while login.


nevets007

Quote from: skaero;22785You would set the theme in the plugins/password/config.inc.php file on the $rcmail_config['password_cpanel_theme'] line. To enable the plugin add it to the $rcmail_config['plugins'] line in the config/main.inc.php.

I dont think I'm doing this right... I tried different things and I don't even see the tab.

What do I need to write in XXX? to activate the plugin.

$rcmail_config['plugins'] = 'XXX';

Thanks for your help in advance!

ataman

Hi everyone!

I need some help too!

Ok my host provider is using Cpanel. He offers me a local installation of roundcube, but I don't like how it set up.

So I install a new version of roundcube 0.3.1 on a different place:
mydomain.com/round

All is working. Now I activated the password plugin , and in the settings I have a tab where the users can change their password. But when they click Save, they are receiving the error "Could not save the new password".

So I open my config.inc.php.list file and edit next:


// A driver to use for password change. Default: "sql".
// Current possibilities: 'directadmin', 'ldap', 'poppassd', 'sasl', 'sql', 'vpopmaild', 'cpanel'
$rcmail_config['password_driver'] = 'cpanel';


after that I change on the same file next lines :

// cPanel Driver options
// --------------------------
// The cPanel Host name
$rcmail_config['password_cpanel_host'] = 'https://mydomain.com';

// The cPanel admin username
$rcmail_config['password_cpanel_username'] = 'myCpanelusername';

// The cPanel admin password
$rcmail_config['password_cpanel_password'] = 'myCpanelPassword';

// The cPanel port to use
$rcmail_config['password_cpanel_port'] = 2083;

// Using ssl for cPanel connections?
$rcmail_config['password_cpanel_ssl'] = true;

// The cPanel theme in use
$rcmail_config['password_cpanel_theme'] = 'x';


Even that I receive the same error "Could not save the new password" :mad:

Is all this is correct? Is there any other options which I must change ?
I will be happy if somebody could help me!

Thanks in advance!

SKaero

You need to rename config.inc.php.dist to config.inc.php also check that your password_cpanel_theme is correct.

ataman

yes I renamed now the file cinfig.inc.php
Yes I'm using the correct theme it's "x"

how exactly I must write the host ? Like this ? :

https://mydomain.com:2083/frontend/x3