On the command line, run the following commands:
# Update the package lists. sudo apt update # Install PHP. sudo apt install -y php