How To Install IIS 7, PHP5 and MySQL 5.1 on Windows

I’ve just got myself an evaluation copy of Windows 2008 Server out of curiosity. I’ve installed it on VMware Workstation 6 running on a Windows Vista computer. While a virtualized Windows 2008 Server is a sucker on resource, it’s performance is still acceptable for those who just want to try it out like me.
Let’s see how to install PHP5 and MySQL5.1 on Windows 2008 Server.
Adding Internet Information Server 7 Role
IIS 7 is now a server role in Windows 2008 Server as opposed to previous versions of Windows Server (2000 and 2003) where IIS was installed as a component.
To add the IIS7 server role, launch the Server Manager: Start => Programs => Administrative Tools => Server Manager
Right-click on Role from the left panel and select Add Roles from the contextual menu. From the Add Roles Wizard, check the Web Server (IIS 7) checkbox. Click on Nextmgmb until the Roles Services screen.
Here are the options I’ve selected:
Web Server 
o Common HTTP Features: 质粒转化Static Content, Default Document, Directory Browsing, HTTP Errors and HTTP Redirection.
o Application Development: All options.成都广播影视学院
o Health And Diagnostic: HTTP Logging.
o Security: Request Filtering.
o Performance: Static Content Compression.
Management Tools: IIS Management Console, IIS Management Scripts And Tools, Management Service
o IIS 6 Managament Compatibility: IIS 6 Metabase Compatibility.
FTP Publishing Service: All options.
Click on Next again and then on Install. When the installation is completed, you can now access your new IIS 7 web server.工艺美术运动的影响
Stay tuned as I’ll post how to install PHP5 and MySQL Server 5.1 on Windows 2008.
Following up on my last post, I’ve now got a working IIS 7 web server running on Windows 2008. We’re now going to install PHP5 and MySQL 5.1.
Installing PHP5 on IIS 7
First of all, grab yourself a copy of PHP over at www.php/downloads.php. I always use the zip package, I never use the installer. The installer only installs and configures the CGI version of PHP which is not the best solution for an IIS web server. I prefer using the ISAPI version.
At the time of this writing, the latest PHP version is 5.2.5.
1. Download the latest PHP version for Windows and unzip its content in a temporary folder on your hard disk.
2. When you’re done, create a folder named php at the root of your hard drive (e.g.: c:\php).
3. Move all the content from the extracted archive to c:\php
4. Rename the file c:\php\php.ini-recommended to c:\php\php.ini and open it with your favorite text editor (no word processor).
5. Find the extension_dir parameter and set its value to “c:\php\ext”. Save the file and exit the editor.
6. Launch the registry editor: Start => Run => regedit
7. Create a new key named PHP under HKEY_LOCAL_MACHINE\SOFTWARE\
8. 南京八一肝病医院Right-click on the newly created key and select New => String Value
9. Name the new value IniFilePath and set the value data to C:\php
10. Click on Start => Settings => Control Panel and double-click the System icon (using the class view).
11. Click on the Advanced system settings link from the left column.
12. From the System Properties window, click on the Advanced tab and then on the Environment Variables button at the bottom.
13. Select the Path variable from the System Variables section and click on Edit. Add c:\php to your system path (be sure to include the semi-colon separator).
14. Click on OK until you’ve exited the System Properties window .
15. Launch the Internet Information Services Manager: Start => Programs => Administrative Tools => Internet Information Services (IIS) Manager
16. From the IIS Manager, click on your server’s hostname from the Connections panel on the left. Double-click on Handler Mappings icon.
17. From the Handler Mappings actions panel, click on Add Script Map…
18. Fill-in the information as illustrated below and hit OK:
19. Click again on your server’s hostname from the left panel and double-click on the ISAPI And CGI Restrictions icon.
20. 水银肥肠From the Actions panel on the right click on Add…
21. Enter the information to allow PHP processing as illustrated below and hit OK:
22. Click on your server’s hostname form the left panel and double-click on the Default Document icon.
23. Click on Add… from the actions panel on the right.
24. Enter index.php in the new default document name and click on OK.
25. Click on your server’s hostname from the left panel and then click on Restart from the actions panel on the right.

本文发布于:2024-09-21 04:24:31,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/569498.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:成都   肝病   转化   运动   肥肠   影视
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议