Roundcube: Difference between revisions
Jump to navigation
Jump to search
Anthoanthop (talk | contribs) No edit summary |
Anthoanthop (talk | contribs) No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Recently i've upgraded to PHP 5.6. | Recently i've upgraded to PHP 5.6. | ||
After that, when i tried to login on my Roundcube Webmail i had this error message: | After that, when i tried to login on my Roundcube Webmail i had this error message: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
anthonypastor roundcube: <211g2b4d> IMAP Error: Login failed for contact from 81.153.32.136. Could not connect to ssl://localhost:993: Unknown reason in /home/sites/roundcube/www/program/lib/Roundcube/rcube_imap.php | anthonypastor roundcube: <211g2b4d> IMAP Error: Login failed for contact from 81.153.32.136. | ||
Could not connect to ssl://localhost:993: Unknown reason in /home/sites/roundcube/www/program/lib/Roundcube/rcube_imap.php | |||
</syntaxhighlight> | </syntaxhighlight> | ||
After some Googling i read that PHP 5.6.X bring a new policy: <b>Stream wrappers now verify peer certificates and host names by default when using SSL/TLS ¶</b>. | |||
To | (http://php.net/manual/fr/migration56.openssl.php). | ||
To fix this issue, in my personal case (using a self-signed cert) i used this configuration to revert to the previous behaviour: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ vi config.inc.php | |||
[...] | |||
$config['imap_conn_options'] = array( | $config['imap_conn_options'] = array( | ||
'ssl' => array( | 'ssl' => array( | ||
Line 29: | Line 37: | ||
); | ); | ||
[...] | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 23:42, 27 April 2015
Recently i've upgraded to PHP 5.6.
After that, when i tried to login on my Roundcube Webmail i had this error message:
anthonypastor roundcube: <211g2b4d> IMAP Error: Login failed for contact from 81.153.32.136.
Could not connect to ssl://localhost:993: Unknown reason in /home/sites/roundcube/www/program/lib/Roundcube/rcube_imap.php
After some Googling i read that PHP 5.6.X bring a new policy: Stream wrappers now verify peer certificates and host names by default when using SSL/TLS ¶.
(http://php.net/manual/fr/migration56.openssl.php).
To fix this issue, in my personal case (using a self-signed cert) i used this configuration to revert to the previous behaviour:
$ vi config.inc.php
[...]
$config['imap_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true,
),
);
$config['smtp_conn_options'] = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true,
),
);
[...]