Advertisement:

Author Topic: SSL not working after upgrading to PHP 7 with SMF 2.0.14  (Read 1676 times)

Offline videoed

  • Jr. Member
  • **
  • Posts: 149
  • Gender: Male
  • Ramón Cutanda
    • videoedicion.org
SSL not working after upgrading to PHP 7 with SMF 2.0.14
« on: October 09, 2017, 05:13:37 PM »
Hi,

After upgrading my server to PHP 7 or PHP 7.1 I get the following error (Firefox):

Code: [Select]
Secure Connection Failed

The connection to the server was reset while the page was loading.

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.

This is my dedicated sever configuration:
  • CentOS Linux release 7.4.1708 with DirectAdmin 2.0.0 (rev: 1734)
  • MySQL 5.6.36
  • Four SMF forums. Three of them using 2.0.14 and one SMF 2.1 Beta 3 (for test purposes). One of them is heavily modified, but others only use one or two mods and the SMF 2.1 is a plain "vanilla" SMF install.
  • One Comodo SSL certificate
  • Let’s Encrypt certificates for all the other SMF sites.
  • I am using the "Image proxy" and the following .htaccess
Code: [Select]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

I have searched the forum but I have not been able to find any information associated to SSL and PHP 7. All my other scripts on the server seem to run fine with PHP 7, so I guess it is something exclusively related to SMF. When I downgrade the server to PHP 5.6 everything runs fine again.

Any help to solve this issue will be greatly appreciated.

Kind regards,

Offline CoreISP

  • Server Admin
  • Server Team
  • SMF Super Hero
  • *
  • Posts: 16,987
  • Gender: Male
  • CoreISP.net
    • liroyvh on LinkedIn
    • @liroyvh on Twitter
    • CoreISP Corporation :: WebHosting, Dedicated Servers, and more!
Re: SSL not working after upgrading to PHP 7 with SMF 2.0.14
« Reply #1 on: October 10, 2017, 05:59:22 AM »
More likely to be an issue with PHP 7.1 config then.
What shows up in the server error logs?
- CoreISP.net Corporation -
  WebHosting, Colocation, Domain Registration & Network Services
- DedicatedBox.us Servers -
  Low priced Servers in a high-quality Network, the place for all your (advanced) server needs.
  We specialize in hosting big boards. Contact us!

((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

Offline videoed

  • Jr. Member
  • **
  • Posts: 149
  • Gender: Male
  • Ramón Cutanda
    • videoedicion.org
Re: SSL not working after upgrading to PHP 7 with SMF 2.0.14
« Reply #2 on: October 10, 2017, 10:58:37 PM »
Hello CoreISP,

Thank you so much for your interest in this matter. After cleaning the sever error log just before upgrade PHP 5.6 to PHP 7.1, to make sure I was not confused with something else, this is the only error registered (multiple times):

Code: [Select]
[Wed Oct 11 04:53:14.030633 2017] [core:notice] [pid 27349] AH00052: child pid 28418 exit signal Segmentation fault (11)
After cleaning the error logs of each of the domains, they stay clean after installing PHP 7.1. The log with the activity is the main server error log.

Thanks once again.

Bests,