Home > Backend Development > PHP Tutorial > php 安装有关问题,总是提示各种各样的异常,求解答

php 安装有关问题,总是提示各种各样的异常,求解答

WBOY
Release: 2016-06-13 13:14:48
Original
1063 people have browsed it

php 安装问题,总是提示各种各样的错误,求解答
以前在linux下配置过php,现在想搭建wamp,于是下载了httpd-2.2.22-win32-x86-openssl-0.9.8t.msi和php5.2.17的压缩包,在F新建wamp文件夹,内有四个子文件夹Apache2.2,PHP,Mysql,www(作为服务器主目录),将apahce,php,mysql分别安装在相应包中,然后按照http://www.win7china.com/html/13026.html进行配置,配置之后,测试php的时候出现了如下问题
在www中建立test.php,浏览器中输入localhost/test.php,总是提示The requested URL /test.php was not found on this server这个错误,后来查看apache的error log发现 File does not exist: F:/wamp/Apache2.2/htdocs/test.php,于是怀疑是不是因为DocumentRoot没有更改的原因,检查配置文件httpd.conf中DocumentRoot结果没有发现问题,于是先不管这个,直接把test.php放到F:/wamp/Apache2.2/htdocs,再次测试localhost/test.php,这一次没有出现The requested URL /test.php was not found on this server的错误,但是直接把test.php中内容显示出来如下:
  phpinfo();
?>
没有解析phpinfo();显示php图标的那个页面
希望高手们帮帮忙,帮忙找找问题

------解决方案--------------------
1.DocumentRoot和ServerRoot是两个值,你有没有搞混了?另外分号、引号等等

2.关联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