搭建2003 + iis + php开发平台.
来源:互联网 发布:cstpcd数据库 编辑:程序博客网 时间:2024/05/20 13:18
Setting up PHP to work on Windows Server 2003
The following things are pre-assumed:
You are running Windows Server 2003
IIS 6.0
You have installed PHP (http://www.php.net) to C:\PHP (installation issues are at the bottom of this page)
You are using default (unmodified) ACLs/Permissions
Update: Tom McDermid has brought to my attention that in the PHP 5 line, the EXE name is "php-cgi.exe" instead of "php.exe", so when installing PHP 5, remember to replace "php.exe" in this tutorial with "php-cgi.exe"
Load IIS from the Administrative tools in the Control Panel by clicking Start -> Administrative Tools -> IIS Manager (or loading the Control Panel, entering the Administrative Tools folder, and double clicking IIS Manager).
Click the name of your computer then click "Web Service Extensions", on the left side of the main frame you will see a green arrow pointing to a link that says "Add a new Web service extension...", click that link.
For the Extension name put something like "PHP" in and for the Required Files put "C:\PHP\php.exe", also check to set it to allowed
Now load a command prompt (Start->Run... type cmd) and type "md c:\inetpub\wwwroot\phpscript"
Back in the IIS Manager double-click "Web Sites", click "Default Web Site", right-click the directory "phpscript" and click properties
In the new dialog click Create then Configuration (Configuration will only become enabled after you click Create). If you don't see .php listed then add it by clicking Add... and setting the following
Click OK and OK and you should be set to run your PHP scripts
Installation issues
Q: I tried installing PHP and got some error about there not being an OCX or something, either way, now I can't execute my scripts :-(
A: The error you received was stating that an OCX control (ActiveX) that the PHP installer uses wasn't found, don't worry, that's the reason I wrote this tutorial :-)
My reasoning
Q: Why do you use the Command prompt to make directories when you can just load Explorer and make it that way?
A: I find it quicker to do by command line, but any method will work.
<-- Go back to the main tutorial page
Copyright ©2002-2014 Jonathan Maltz. For trademark/copyright information, click here. About me. Main page. Contact me.
0 0
- 搭建2003 + iis + php开发平台.
- 使用Microsoft Web Platform Installer在windows平台搭建IIS+PHP+MySQL开发环境
- PHP 开发平台搭建软件列表
- PHP开发平台相关的搭建设置
- Windows 平台搭建 PHP 集成开发环境
- IIS PHP搭建
- iis+php环境搭建
- windows+iis的平台上搭建支持php+mysql 服务器上也是一样
- php+mysql+iis环境搭建
- windows iis+php 环境搭建
- 快速搭建PHP+iis环境
- Mac平台搭建php平台
- Windows平台下PHP开发环境的快速搭建
- Windows平台下PHP+Apache开发环境搭建方法备忘录
- 在 Windows 平台搭建 PHP 集成开发环境
- PHP平台搭建
- PHP学习笔记之1--开发环境搭建IIS +PHP +Mysql
- iis+php+mysql+wamp PHP环境搭建
- IOS工具, 解码,charles,json校验等工具使用地址
- 链式前向星
- 磁学基础 永久磁铁的磁力线分布
- Oracle动态采样详解
- win7 eclipse 编译Launcher源码
- 搭建2003 + iis + php开发平台.
- 在github中的README.md中添加图片
- SringMVC 注解标记备忘
- 只用于块级元素的css
- Spring中DispacherServlet、WebApplicationContext、ServletContext的关系
- L3总线接口
- c语言编写的小游戏
- 解放军海军副司令员:还北洋海军将领公正评价
- jquery选择器