在Windows 8和Internet信息服务8.5上-如何设置PHP? [英] On Windows 8 and Internet Information Service 8.5 - how to setup PHP?

查看:49
本文介绍了在Windows 8和Internet信息服务8.5上-如何设置PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先让我说我对Microsoft的Internet信息服务非常陌生.我需要在PC上设置IIS,它也应该执行PHP文件.到目前为止,我已安装并正在运行所有内容-最新的PHP和已启用的IIS服务.我只能查看默认网页(* .html)文件.它不会执行PHP文件.如果我尝试请求任何PHP文件,则会收到403错误.

Let me begin by saying that I am very new to Microsoft's Internet Information Service. I need to setup IIS on my PC and it should also execute PHP files. So far I got everything installed and running - the latest PHP and enabled IIS service. I can view the Default Webpages (*.html) files ONLY. It will not execute PHP files. If I try to request any PHP files, I get 403 error.

我一直在在线研究,似乎对在IIS上安装PHP(扩展名)更加困惑.一些网站说,您需要通过其MANAGER配置PHP.其他人说我需要通过IIS管理器添加Role和FastCGImodule.根据Microsoft的说法,我需要将php.ini-development重命名为php.ini,并将php指向某个DLL文件.

I have been researching online and seems to be more confused about setting up PHP (extension) on IIS. Some websites say you need to configure PHP through its MANAGER. Others say I need to add Role and FastCGImodule through IIS manager. According to Microsoft I need to rename php.ini-development to php.ini and point php to some DLL file.

我正在使用Windows 8,IIS 8.5和PHP 5.6.我希望有人能指出我的方向.

I am using Windows 8, IIS 8.5 and PHP 5.6. I hope someone could point me in the direction.

推荐答案

我确实将答案贴在心上,但我一直遇到问题.实际上,我还按照Microsoft的分步教程逐步安装了TEETH的PHP.我仍然无法在IIS上使用PHP.尽管Microsoft警告不要使用Windows平台安装程序(WPI),但我下载了WPI并运行了该安装程序.在框架下,我找到PHP 5.6,然后单击添加"按钮.然后,单击安装"按钮.安装仅花费了大约30秒钟.只是要确定.我检查了IIS管理器,那里是PHP管理器.打开PHP管理器后,我注意到所有设置都已启用,并且已经启用了15个不同的扩展名.另外,它还禁用了大约35个扩展名,但是您可以选择在此处启用扩展名.

I did try the answer posted to heart, but I kept running into problems. In fact, I also followed the Microsoft step by step PHP setup tutorial to the TEETH. I still couldn't get PHP working on my IIS. Although Microsoft warned against using Windows Platform Installer(WPI), I downloaded WPI and ran the installer. Under frameworks, I found PHP 5.6 and clicked on Add button. Then, clicked on the Install button. It took only about 30 seconds to install. Just to be sure. I checked IIS manager and there it was PHP Manager. After opening PHP manager I noticed that all the settings were there and enabled and it already had 15 different extension enabled. Plus, it also had about 35 extension disabled, but it gives you option to enable them right there.

现在,我的PHP文件已按预期呈现.我什至做了phpinfo();浏览器将显示所有PHP设置和信息.:)

Now, my PHP files are rendered as expected. I even did phpinfo(); and the browser displayed all the PHP settings and information. :)

这篇关于在Windows 8和Internet信息服务8.5上-如何设置PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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