问题描述
我开始真的为此疯狂。
我已经下载了PHP 5.2.11。
我将它解压缩到C :\ PHPP \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ini文件被重命名,以便它是'php'ini"
我编辑了php.ini文件以包含我需要的扩展等
在IIS7中我安装了php5isapi.dll
我编辑了脚本处理程序指向php5isapi.dll并确保它被允许执行
我甚至改变了系统环境的路径包括C:\ PHP \php5211 \
我无法让PHP运行。
我有一个测试现在服务器上的脚本(<?php phpinfo();?>)进行测试,但每当我尝试运行它时,我都会收到404错误。我在服务器上还有一个index.html文件,其中包含hi。在它...我可以很好地访问它。
所以PHP没有运行。
但还有一个其他的问题,每当php5isapi被激活时,w3wp.exe(工作进程)都会一直崩溃(如果我不允许的话,我不会看到这个问题)。
我甚至试过安装PHP 5.3.0但是并没有走得太远,因为它似乎缺少一些关键组件......
有没有人对如何让它工作有任何建议?
谢谢!
-Frinny
I''m starting to really go crazy with this.
I''ve downloaded PHP 5.2.11.
I unzipped it into C:\PHP\php5211\
I copied the php.ini (recommended) file to c:\windows\
I made sure that the php.ini file was renamed so that it''s "php.ini"
I edited the php.ini file to include the extensions etc that I need
In IIS7 I installed the php5isapi.dll
I edited the Script Handlers to point to the php5isapi.dll and made sure that it is allowed to be executed
I even changed the system environment''s path to include C:\PHP\php5211\
I cannot get PHP to run.
I have a test script on the server right now (<?php phpinfo(); ?>) to test with but whenever I try to run it I get a 404 error. I also have an index.html file on the server that has "hi" in it...I can access it fine.
So PHP''s not running.
But there''s one other problem, the w3wp.exe (the worker process) keeps crashing whenever the php5isapi is activated (if I disallow it I don''t see this problem).
I even tried installing PHP 5.3.0 but didn''t get very far with it because it seems to be missing some key components....
Does anyone have any suggestions on how to get this to work?
Thanks!
-Frinny
推荐答案
这篇关于将PHP安装到IIS上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!