Score:0

Why is php7.4-curl version not installed?

mg flag

I me an Ubuntu 22.04 cloud server. Site version php 7.4.30

I needed to install curl version 7.4, I did the following:

sudo add-apt-repository ppa:ondrej/php 
sudo apt update 
sudo apt install php7.4-curl

As a result, it installs version 7.8.1, which works only with php 8

Please help with this problem. What do I need to do for this?

Diogo Constantino avatar
it flag
I've just created a fresh LXC container for Jammy, updated it, added the pp:ondrej repository updated it further, and installed that package.After that I listed the files installed by the package and I see no signs that it has installed php7.8.1-culr. However curl (which is not a PHP library, is on version 7.8.1 by default on Ubuntu Jammy), but the installed PHP library will successfully work with that version of Curl. I successfully tested by installing php7.4-cli and using the example code at: https://www.php.net/manual/en/curl.examples-basic.php
Score:0
it flag

It's installed your confusing versions of php-curl with the version of curl for which php-curl is a binding library. Check my comment which does have more details.

I sit in a Tesla and translated this thread with Ai:

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.