Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install cURL in php 7 (ubuntu14.04)

Tags:

php

curl

ubuntu

I have php7 installed on ubuntu 14.04

I have problems with curl I tried to run composer install and it gives me error Your requirements could not be resolved to an installable set of packages.

Problem 1 - stripe/stripe-php v2.3.0 requires ext-curl *-> the requested PHP extension curl is missing from your system.

I also tried sudo apt-get install php-curl. This gives me output:

E: Unable to locate package php-curl

Help

like image 883
Monal Soft Avatar asked May 26 '16 10:05

Monal Soft


People also ask

How do I enable cURL on Linux server?

The procedure to install cURL on Ubuntu Linux is as follows: Update your Ubuntu box, run: sudo apt update && sudo apt upgrade. Next, install cURL, execute: sudo apt install curl. Verify install of curl on Ubuntu by running: curl --version.

What is cURL in Apache?

The curl utility is a command line tool available on Unix, Linux, Mac OS X, Windows, and many other platforms. curl provides easy access to the HTTP protocol (among others) directly from the command line and is therefore an ideal way of interacting with CouchDB over the HTTP REST API.


1 Answers

Try using:

 sudo apt-get install php7.0-curl
like image 188
Swapnil Avatar answered Oct 02 '22 05:10

Swapnil