如果ubuntu上还没有安装tasksel,先apt install安装:
然后执行tasksel进入交互式GUI:
选中LAMP server:LAMP = Linux+Apache+mySQL+Php
点击回车键:
安装完毕。