apache服务器不能运作php

WBOY
Release: 2016-06-13 13:18:05
Original
844 people have browsed it

apache服务器不能运行php
系统:RHEL6
lamp搭建完成

apache正常启动
但是无法运行php文件,在浏览器中直接显示php代码!

------解决方案--------------------
phpinfo();
?>

这样呢
------解决方案--------------------
PHP默认是改为------解决方案--------------------
仅仅加AddType application/x-httpd-php .php这个是不够的。要确认一下加载了php模块没有。搜索一下相关配置之。
------解决方案--------------------
应该是php环境没正确搭建.
------解决方案--------------------
你环境没搭建好

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template