Here’s how to list the available PHP modules.

<pre lang="bash">
apt-cache search php- | less

To get details about a module.

<pre lang="bash">
apt-cache show php-curl

To install a module.

<pre lang="bash">
apt install php-curl

Or install all modules.

<pre lang="bash">
apt install php*

Restart Apache after each install.

<pre lang="bash">
systemctl restart apache2