How to enable cURL in PHP / XAMPP

Viewed 440270

How do I enable cURL in PHP?

​​

18 Answers

In SUSE Linux:

zypper in php5-curl
rcapache2 restart

PHP 7^ version:

sudo apt-get install php-curl
sudo service apache2 restart

Check the php version, If you installed php 7.0 version

sudo apt-get install php7.0-curl
sudo service apache2 restart

If you installed php 5.6 version

sudo apt-get install php5-curl
sudo service apache2 restart
Related