一、安装一个命令搞定:安装php7和apache的php7模块:apt-get install php7.0 libapache2-mod-php7.0重启apache:etcinit.dapache2 restart在varww