Question

cURL is not installed on this server after updating to Ubuntu 20.04

I’ve updated Ubuntu from 16.04 to 18.04 and then from 18.04 to 20.04. Now two plugins on Wordpress give me these errors:

1- OneSignal Push: cURL is not installed on this server. cURL is required to send notifications. Please make sure cURL is installed on your server before continuing.

2- Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: curl

I’ve tried every related solution on the internet so far but could not solve this problem yet. I ran sudo apt-get install curl, but nothing has changed. I also got this: curl is already the newest version (7.68.0-1ubuntu2.2)

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.

Hi @rem3n,

I’m glad the issue is resolved now!

Regarding cleanup, I saw you have a lot of PHP versions installed. If you are not using them, I’ll recommend removing all of them but the one that you are using.

Regards, KFSys

Hi @rem3n,

You’ll need to install PHP’s curl module rather than the curl service on your server. Try to execute the following command on your droplet

apt list --installed php*

It will show you all your PHP packages. It’s possible you actually have two PHP versions rather than one. You can remove the old one and just use the newest.

Regards, KFSYS