ubuntu下如何安装与配置php?

本人ubuntu20.04的系统,安装配置了nginx服务器,苦于无法运行后台脚本,比如asp和php脚本文件,多次寻找网上配置教程仍无法正确配置。
img

img

如果要运行php脚本可以 安装一体化的环境LNMP 即安装nginx、mysql、php 三项
安装参考:https://blog.csdn.net/weixin_42433970/article/details/102463843


sudo apt install php7.4 -y