最新消息: 新版网站上线了!!!
     

apache访问网站php没有解析,直接输出代码源码

打开apache配置文件httpd.conf
找到AddType application/x-gzip .gz .tgz
在其下面添加:
AddType application/x-httpd-php .php //添加支持对php脚本解析

修改为如下:
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php

转载请注明:谷谷点程序 » apache访问网站php没有解析,直接输出代码源码