Score:1

How can I use Ubuntu 22.04 with OpenSSL 3 and PHP sites? Getting errors due to a conflict

us flag

I have an Ubuntu 22.04 install and it is using OpenSSL 3. When I put my site on the server, I get this error:

file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000126:SSL routines::unexpected eof while reading

Searching for answers just tells me there's a bug with PHP 8.1 and OpenSSL3 on a Laravel app. So, how is anybody hosing PHP apps on Ubuntu 22.04?

Score:0
ru flag

This seems to be fixed in the latest version of PHP. I had the same problem connecting to GitLab over https on PHP 8.1.2, but PHP 8.1.6 does not have the same problem.

PopOS 22.04 (based on Ubuntu) currently ships with 8.1.2, but running php:latest from docker hub brings 8.1.6 which solved my issue (running a script to backup git repos from our GitLab account)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.