How to Enable Curl for an Installed Ubuntu Lamp Stack

How can I enable cURL for an installed Ubuntu LAMP stack?

From Install Curl Extension for PHP in Ubuntu:

sudo apt-get install php5-curl

After installing libcurl, you should restart the web server with one of the following commands,

sudo /etc/init.d/apache2 restart

or

sudo service apache2 restart

How do I install the ext-curl extension with PHP 7?

Well I was able to install it by :

sudo apt-get install php-curl

on my system. This will install a dependency package, which depends on the default php version.

After that restart apache

sudo service apache2 restart

Using Laravel, Guzzle complains that the PHP cURL extension isn't installed

The PHP cURL extension package needs to install. Run this command to install the package:

sudo apt-get install php5.6-curl

Then run:

laravel new myproject



Related Topics



Leave a reply



Submit