Let’s have a look which packages are already installed and show only those with „php“ in the name. A fresh system usually shouldn’t give any results.

Next you can check what kind of modules are available. Do it like this:

Now install the php7 base packages with the command:

Now install some other packages for php: