将PHP安装到IIS上 [英] Installing PHP onto IIS

查看:62
本文介绍了将PHP安装到IIS上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始真的为此疯狂。


我已经下载了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

推荐答案

是你的测试脚本文件在文件根目录中??????


问候

Dheeraj Joshi
Is your test script file is in document root??????

Regards
Dheeraj Joshi


坚持 - 我'我将把CodeGecko的注意力吸引到这个线程上 - 我知道他已经在他的IIS服务器上成功安装了PHP。
Hold on - I''ll draw CodeGecko''s attention to this thread - I know he''s successfully installed PHP on his IIS server.


我已经花了大约8个小时帮助Frinny晚上使用远程桌面:-)

我们是o下来 - IIS7上的PHP5在ISAPI模式下运行,这很好。

问题是当PHP尝试连接到MySQL时,PHP5 ISAPI崩溃,然后杀死应用程序池工作进程。


有趣的是,Frinny正在考虑安装Joomla ...想要阻止她的Markus? :-D


codegecko
I''ve already spent about 8 hours helping Frinny in the evenings using remote desktop :-)
We''ve isolated it down - PHP5 on IIS7 runs in ISAPI mode, which is fine.
The problem is that the PHP5 ISAPI crashes, which then kills the application pool worker process, when PHP tries to connect to MySQL.

Funnily enough, Frinny''s looking at installing Joomla... wanna deter her Markus? :-D

codegecko


这篇关于将PHP安装到IIS上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆