apt-get install php7.0apt-get install libapache2-mod-php7.0apt-get install php7.0-gd
测试:打开"终端窗口",输入
gedit /var/www/info.php<?php phpinfo(); ?>"
保存,文件创建成功。 在火狐浏览器中输入"127.0.0.1\info.php"-->出现了php的版本信息页面,说明php安装配置成功。apt-get install php7.0apt-get install libapache2-mod-php7.0apt-get install php7.0-gd
测试:打开"终端窗口",输入
gedit /var/www/info.php<?php phpinfo(); ?>"
保存,文件创建成功。 在火狐浏览器中输入"127.0.0.1\info.php"-->出现了php的版本信息页面,说明php安装配置成功。