Home  >  Article  >  Backend Development  >  着实不知道哪里发帖只好发这里了:关于linux6.1企业版配置php运行

着实不知道哪里发帖只好发这里了:关于linux6.1企业版配置php运行

WBOY
WBOYOriginal
2016-06-13 10:33:54674browse

实在不知道哪里发帖只好发这里了:关于linux6.1企业版配置php运行
我装了个 desktop 版的 linux 6.1 , apache也装了也启动正常,

但是就是无法解释php 代码,也就是 /etc/www/html/这里 放了个

test.php,代码很简单就一句 echo 'fuck'; 但是浏览器(火狐)原样的输出了所有代码,并没有解析,

如果放到 /etc/www/cgi-bin/下,又出现 404.htm 访问错误,

求安装 php 5.0 以上版本的方法

------解决方案--------------------
除了apache 还得安装php的支持

google 搜索 linux apache php mysql yum

就有n多答案了,也很简单,几条指令而已.
------解决方案--------------------
嫌麻烦的话安装 xampp for linux 或者集成包。又不是没有。
------解决方案--------------------
郁闷一下(yum)一下,答案多多
------解决方案--------------------
在apache里的配置文件里,添加php解析模块

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