运维网's Archiver
论坛
›
lanmp
› lamp访问的时候index.php时直接下载了该文件
45321
发表于 2016-5-13 10:25:59
lamp访问的时候index.php时直接下载了该文件
这个原因是因为Apache无法解析php文件
vim /etc/httpd/httpd.conf
addType application/x-httpd-php .php
AddType application/x-httpd-php-source.phps
<IfModule dir_module>
DirectoryIndexindex.php index.html
</IfModule>
页:
[1]
查看完整版本:
lamp访问的时候index.php时直接下载了该文件