Home  >  Article  >  Backend Development  >  linux中编译安装apache,无法解析php文件

linux中编译安装apache,无法解析php文件

WBOY
WBOYOriginal
2016-06-23 14:26:541783browse

现在网站直接显示源码

AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
AddType application/x-httpd-php .php .phtml .php3 .php4
AddType application/x-httpd-php-source .phps

这些我也加了,是不是还有加什么?


回复讨论(解决方案)

看看有没有这个?
LoadModule php5_module        modules/mod_php55.so

另外查看一下httpd/error_log有点什么?
还有,怀疑你编译的httpd文件不是apache默认的那个。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn