Select Page

This is a solution for an ubuntu server running WordPress. This is the message that I was seeing under site health:

One or more required modules are missing

PHP modules perform most of the tasks on the server that make your site run. Any changes to these must be made by your server administrator.

The WordPress Hosting Team maintains a list of those modules, both recommended and required, in the team handbook (opens in a new tab).

Warning The optional module, curl, is not installed, or has been disabled.
Warning The optional module, dom, is not installed, or has been disabled.
Warning The optional module, imagick, is not installed, or has been disabled.
Warning The optional module, zip, is not installed, or has been disabled.
Warning The optional module, gd, is not installed, or has been disabled.

First make sure you’re running a newer version of PHP. Run the command:

php --version

If you get 7.4 these are the commands you want to run. If you’re on a lower version it is best to consider upgrading to the latest PHP version.

Run the following command into your console to resolve these issues:

sudo apt-get install php7.4-curl php7.4-xml php7.4-imagick php7.4-zip

You may have run into these issues if you followed this tutorial:

This is a great tutorial and can help you get up and running with WordPress for free! (with limitations of course) I really recommend checking it out if you’re interested.