cURL extension is disabled on your server

I have a plugin installed on my wordpress website that is not working and it’s saying “cURL extension is disabled on your server.”

Could someone please help me out with this? I really understand absolutely nothing about coding or anything about DigitalHost. I paid someone to transfer my website from Godaddy to here. So I ask that you guys who are willing to help me out to please tell me step by step, since I possess absolutely no knowledge about anything. Thank you all so very much in advance.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey there,

What you’re most likely looking for is sudo apt-get install php5-curl. You’ll want to restart Apache after installing curl - sudo service apache2 restart.

After that you should be set!

Thank you and please let us know if there is anything else we can do for you.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean


If you’re using Nginx or Apache on Ubuntu 20 droplet:

Install PHP libraries for the server by running the following command:

sudo add-apt-repository ppa:ondrej/php

sudo apt update

sudo apt install curl

Check the version of curl installed by the command:

dpkg -l curl

You need to restart your webserver on which PHP is running: If you are using Apache server then use either of the following commands to restart the server:

sudo service apache2 restart


sudo /etc/init.d/apache2 restart

Similarly, if you are using Nginx server, then use either of the following commands:

sudo systemctl restart nginx


sudo /etc/init.d/nginx restart

Hope that this helps! Regards, Alex

On your terminal or SSH Session, Run the updated command:

sudo apt-get install php-curl

This will pull curl for the latest PHP version. (If you’re not running the latest php, I don’t believe this will work for you)

Type Y to accept the warning that additional disk space will be used and press return on your keyboard. Then once installed as jschween advised, go ahead and restart apache2 to ensure it loads the curl module.

sudo service apache2 restart

Test your module/plugin/script to see if it can properly use curl now.

Good Luck!