I want to install PHP5-Curl
in my Debian server. But when I run this command:
apt-get install PHP5-Curl
I got an error like:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package PHP5-Curl is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'PHP5-Curl' has no installation candidate
Try searching for the available version that suits for you with sudo apt-cache search curl | grep php
and then sudo apt-get install php<x>-curl
.
In my case it was php7.0-curl
.
First search for your php version using command php -v and then download the respective version of php(version)-curl.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With