PHP and WordPress – how to add curl if it’s missing

  linux, php

The WordPress “Health Status” says it’s missing some plugin:

# check the PHP version that we have running:

root@server:/opt/web/mysite.com# php --version
PHP 7.4.12 (cli) (built: Nov  3 2025 14:32:41) ( NTS )

Find your version.

And then:

# get what's missing for our PHP version:
apt-get install php7.4-curl
apt-get install php7.4-mbstring
apt-get install php7.4-bcmath