Author Topic: password plugin with cpanel11  (Read 168 times)

Offline rangam

  • Newbie
  • *
  • Posts: 2
password plugin with cpanel11
« on: April 26, 2013, 11:12:13 AM »
Dear All,

Please help me to integrate the password plugin in my hosting hosted with cpanel.

I've configured the roundcube and password plugin as below.

I'm using roundcube version 0.9.0
Cpanel version cpanel11.

config.inc.php in password plugin directory.

Code: [Select]
$rcmail_config['password_driver'] = 'cpanel'
$rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)';
$rcmail_config['password_cpanel_host'] = 'xxx.com';
$rcmail_config['password_cpanel_username'] = 'xxxxxxx';
$rcmail_config['password_cpanel_password'] = '*********';
$rcmail_config['password_cpanel_port'] = 2096;   //  I have tried with port numbers 2082, 2083, 2095, 2096 I'm not sure which to use here. When I login to my control panel as xxx.com/cpanel it gives xxx.com:2093 with https and xxx.com:2092 with http
$rcmail_config['password_cpanel_ssl'] = false;    //  tried with true
$rcmail_config['password_cpanel_theme'] = 'x3';

main.inc.php in configs directory

Code: [Select]
$rcmail_config['plugins'] = array('password');

along with these setting i have copied the xmlapi.php from the following link

https://raw.github.com/CpanelInc/xmlapi-php/master/xmlapi.php

I'm not getting what i done wrong with these settings.

the below is error log I'm getting

when tried with $rcmail_config['password_cpanel_port'] = 2096;

[26-Apr-2013 07:55:58 America/Phoenix] PHP Warning:  fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to xxx.com:2096 (Connection refused) in /home/content/05/10935505/html/easyarmmail/plugins/password/drivers/cpanel.php on line 66

when port number changes the log changes the port number at unable to connect to xxx.com:2082 as port number configured.

When i use
$rcmail_config['password_cpanel_ssl'] = true;

[26-Apr-2013 07:55:58 America/Phoenix] PHP Warning:  fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to ssl://xxx.com:2096 (Connection refused) in /home/content/05/10935505/html/easyarmmail/plugins/password/drivers/cpanel.php on line 66

Can any one help please. It's urgent.

Thanks in to all.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 3,103
    • http://SKaero.com/
Re: password plugin with cpanel11
« Reply #1 on: April 26, 2013, 04:23:41 PM »
It looks like your host maybe is blocking local connections to cPanel. Maybe try the hostname of the server instead of your domain.

Offline rangam

  • Newbie
  • *
  • Posts: 2
Re: password plugin with cpanel11
« Reply #2 on: April 26, 2013, 11:27:36 PM »
I have changed the hostname to the server name instead of my domain still gives error.

[26-Apr-2013 20:21:24 America/Phoenix] PHP Warning:  fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to ssl://linux8.indiato.net:2083 (Connection refused) in /home/content/05/10935505/html/easyarmmail/plugins/password/drivers/cpanel.php on line 67

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 3,103
    • http://SKaero.com/
Re: password plugin with cpanel11
« Reply #3 on: April 27, 2013, 01:17:07 AM »
I don't think it will work for you. My recommendation would be to try the password plugin from the current git. The new cPanel driver uses the cPanel xml api instead of the clumsier fsockopen method. I'm not sure if you could drop in the new version of the plugin or if you'd have to update the whole RoundCube install.