How do I enable cURL in PHP?
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
Basic tip: After enabling the CURL in php.ini file, you need to restart the web server to make it work (my experience says).
In SUSE Linux:
zypper in php5-curl
rcapache2 restart
You compile your PHP using --with-curl.
check if curl module is available
$ ls -la /etc/php5/mods-available/
enable the curl module
$ sudo php5enmod curl
source: http://baligena.com/installing-curl-ubuntu-server/
I found the file located at:
C:\xampp\php\php.ini
Uncommented:
;extension=php_curl.dll