Author Topic: IIS7 + PHP5.6.0.2.2 + PostgreSQL + hMailServer + RoundCube 1.0 + OpenSSL  (Read 8483 times)

Offline PTZ-M

  • Newbie
  • *
  • Posts: 1
Hi, I'm installed to Roundcube on localhost when I'm trying logging on to Roundcube, getting "Connection to storage server failed" error only when SSL connections. :'(  hMailServer works perfectly.

Code: (\logs\errors) [Select]
[08-May-2014 12:40:27 +0400]: IMAP Error: Login failed for demo@test.local from 127.0.0.1. Could not connect to ssl://test.local:993: Unknown reason (fsockopen() function disabled?) in C:\inetpub\mail\program\lib\Roundcube\rcube_imap.php on line 184 (POST /?_task=login?_task=login&_action=login)
Code: (config.inc.php) [Select]
$config['db_dsnw'] = 'pgsql://postgres:masterkey@localhost:5433/rc';
$config['default_host'] = 'ssl://test.local';
$config['smtp_server'] = 'ssl://test.local';
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';
$config['support_url'] = '';
$config['des_key'] = 'iShJJa5UfkD!&E$!EgUdQkcd';
$config['plugins'] = array();
$config['language'] = 'en_US';

Code: (php.ini) [Select]
[WebPIChanges]
error_log = "C:\Windows\temp\php56_errors.log"
upload_tmp_dir = C:\Windows\temp
session.save_path = C:\Windows\temp
cgi.force_redirect = 0
cgi.fix_pathinfo = 1
fastcgi.impersonate = 1
fastcgi.logging = 0
max_execution_time = 300
date.timezone = Europe/London
extension_dir = "C:\php-5.6.0beta2\ext\"

[ExtensionList]
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_curl.dll
extension=php_exif.dll
extension=php_xmlrpc.dll
extension=php_openssl.dll
extension=php_soap.dll
extension=php_pdo_mysql.dll
extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_imap.dll
extension=php_tidy.dll
extension=php_com_dotnet.dll
extension=php_pdo_sqlsrv.dll
extension=php_sqlsrv.dll
extension=php_fileinfo.dll

What went wrong? Plz help.

Offline 6michel

  • Full Member
  • ***
  • Posts: 51
  • Bienvenue ! Welcome !
    • Site loisir
Hi PTZ-M,

Did you make sure your ports?

Yours sincerely
Merci Beaucoup! Thank You Very Much !
Cordialement, Sincerely

Offline ineo

  • Jr. Member
  • **
  • Posts: 40
PHP 5.6.x.x + RoundCube 0.8.7 and 1.0 + OpenSSL unable to login
« Reply #2 on: June 12, 2014, 08:42:07 AM »
I experience the same problem and I guess it has to do with php 5.6 and certificate peer verification.

Below is a bug report that gives some extra information.

(https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1227148.html)

I tried to solve this with the ca-certificates package (I and running my own CA) and all possible checks tell me that this
is installed correct but round cube imap-login still reports problems. Maybe the php code has to be changed so the
correct CApath is used. I also tried to edit php.ini with the openssl.capath option but this didn't solve the problem for me.

I am running 0.8.7. I guess newer version also experience this problem when connecting to imap with ssl