Stephan Vierkant Stephan Vierkant - 4 months ago 225
PHP Question

Install ext-curl extension with PHP 7

I've installed PHP 7 using this repo, but when I try to run

composer install
, it's giving this error:



  • [package] requires ext-curl * -> the requested PHP extension curl is missing from your system.




With PHP 5, you can easily install it by running the
yum
or
apt-get install php5-curl
command, but I can't find how to install the PHP 7 equivalent.

How do I install ext-curl for PHP 7?

Answer

Well I was able to install it by :

sudo apt-get install php-curl

on my system. I am running ubuntu 14.04 and I have php 7.

Comments