Question

cURL is NOT installed in your PHP installation?

Posted May 21, 2014 311.2k views
Hello I have a droplet that is running WordPress on Ubuntu 13.10 and I installed a WordPress plugin give this "cURL is NOT installed in your PHP installation" what do I need to do? Thank you
1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
19 answers

Open SSH

  1. First Install CURL by typing sudo apt-get install curl
  2. Then Restart Apache by typing sudo service apache2 restart
  3. Then Install PHP5 CURL by typing sudo apt-get install php5-curl
  4. will prompt to install… type y or yes!
  5. Then Restart Apache by typing sudo service apache2 restart Done!

Now you should be fine!

if you upgraded to php 7.0, make sure to use;

sudo apt-get install php7.0-curl

instead of …

sudo apt-get install php5-curl

It works, but i need to restart apache

 sudo apt-get intall php5-curl

/etc/init.d/apache2 restart
To make it work with php I think you need php5-curl. Try this
 sudo apt-get intall php5-curl
It can be installed with:


sudo apt-get install curl
Thank you very much Andrew.
hmmmm......Andrew I put in the command but it gave me this error

"Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
"Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?"


Marinos Sianios I put in yours but gave me "Invalid operation intall"
Please need to solve this....
The "Invalid operation intall" error is just a typo, so it should be:


sudo apt-get install php5-curl


Sorry for the typo, nice to know that it works!

It works,

sudo apt-get install php5-curl

sudo service apache2 restart

Thanks a Lot. Very crisp answer. thanks

It says: “sudo service apache2 restart” is unrecognized. What do I do?

someone please help me where do i input these commands ?

Curl was installed

which curl
# => /usr/bin/curl

I run php5.6

php --version
# => PHP 5.6.31-4+ubuntu14.04.1+deb.sury.org+4 (cli)

I needed to run

apt-get install php5.6-curl
service apache2 restart
Submit an Answer