在/etc/apache2/apache2.conf 文件的不是最后随机位置,但是不要有行前空格,添加
AddHandler php5-script .php .html
AddType text/html .php .html
重启sudo /etc/init.d/apache2 restart
在/etc/apache2/apache2.conf 文件的不是最后随机位置,但是不要有行前空格,添加
AddHandler php5-script .php .html
AddType text/html .php .html
重启sudo /etc/init.d/apache2 restart