cURL is NOT installed in your PHP installation?

May 21, 2014 47.3k 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
16 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!

It works, but i need to restart apache

 sudo apt-get intall php5-curl

/etc/init.d/apache2 restart

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

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
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

  • I needed to first run "sudo apt-get update" before the installation command (which restarted apache2 itself). Works now.

Thanks a Lot. Very crisp answer. thanks

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

Have another answer? Share your knowledge.