Home  >  Article  >  Backend Development  >  CentOS 下php的执行,该如何解决

CentOS 下php的执行,该如何解决

WBOY
WBOYOriginal
2016-06-13 13:52:221052browse

CentOS 下php的执行
我是刚学linux,php,安装时选择了centos系统,安装时选择安装了php apache,mysql,安装后开启了服务httpd,输入http://127.0.0.1/后,能执行html页,但php不能执行,
在httpd.cong中加了LoadModule php5_module modules/libphp5.so
和AddType application/x-httpd-php .php,但运行index.php是什么也没有,也没有报错.请大家给指点一下,还有哪部没有配好,才能执行php,谢谢.

------解决方案--------------------
php解释器没有安装吧,应该是PHP没有安装好。。。
------解决方案--------------------
不知道你的LAMP环境是怎么安装的!

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