Report this

What is the reason for this report?

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

Posted on November 15, 2020

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)



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!

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.

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

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.