Php7.4-curl installation issue

SYSTEM INFORMATION
OS type and version: Ubuntu 16.04.6 LST (Xenial Xerus)
Virtualmin serial: 5573713

When I want to install stripe/stripe-php using composer. I got a php-curl related error. That is-

Root composer.json requires PHP extension ext-curl * but it is missing from your system. Install or enable PHP’s curl extension.

But, when I trying to install php7.4-curl using this below command-
root@ip-XXX:/home/ubuntu# sudo apt-get install php7.4-curl

I got the below error-

E: Unable to locate package php7.4-curl
E: Couldn’t find any package by glob ‘php7.4-curl’
E: Couldn’t find any package by regex ‘php7.4-curl’

On Ubuntu you can just run sudo apt-get install curl and that’s it.

By the way, you need to upgrade your OS. 16.04 is no longer in support. It was end of life in April.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.