php不解析的排查步骤

看一下有没有加载libphp5.so

/usr/local/apache2/bin/apachectl -M

查看配置文件中是否有

AddType application/x-httpd-php .php

看看有没有加入index

DirectoryIndex index.html index.htm index.php

不要忘记重启apache

还有一个不容忽视的问题,就是检查你的selinux是否开启
命令: getenforce 如果结果是 Enforcing 就说明是打开的
关闭: setenforce 0
还要在配置文件中配置一把enforcing改为disabled

标签: web, 排障

添加新评论