This article and "Windows2003 under the php5.4 installation Configuration tutorial (Apache2.4)" (Click to open the link) as a sister, but the server used in PHP is a little different, here is a Apache2.4, a Windows2003 from the IIS server.
First, install IIS in Windows2003
1, first open the Windows2003 Control Panel, to see if there is "management tools", no matter, click "Add or Remove Programs." If any, you can go directly to the second step, the configuration of IIS.
2, in the pop-up window, select Add/Remove Windows components, select the "Network Services" component and "Application Server" components on the hook, generally, simply hook up these two components are not, but also to open the "Application Server" component details, the inside can hook up on the hook, If the tick is only a gray tick, then you should open the "details" of the item and hook up all the components inside. To ensure that our ASP site does not run because one component is missing.
3, after all components check, click OK, installation process, will require to find Windows2003 installation mirror Windows Server 2003 Enterprise Edition Sp2.iso, no words on the internet a lot of search.
4, the installation process, you may be required to set IP address, click the Microsoft Network Client Select "Properties", casually assign an IP to Windows2003 can be, this is not the end of the IP that we presented to the user, it does not matter.
5, waiting for the installation to complete, IIS installed finished. After that, you can open the IE6 browser, enter the http://localhost/iisstart.htm directly, see a "Build" page on the right, indicating that IIS has successfully run.
Second, configure the necessary plug-ins for IIS under WINDOWS2003
First, Windows2003 must install VC9 's runtime and fcgi to run php5.4 under IIS normally.
VC9 's Run-time library can be downloaded on the Microsoft Official Web site.
URL: http://www.microsoft.com/zh-cn/download/details.aspx?id=29
If you are too troublesome, you can directly copy the following address to the download tool: http://download.microsoft.com/download/7/5/0/ 7502f4e9-1f90-4895-9259-1bde67b8b9a1/vcredist_x86.exe
After downloading is a vcredist_x86.exe, direct non-stop next installation, installation path is not your choice. Installation of the time will be in the same directory to create some temporary files, please delete the installation after the completion of their own.
FCGI also can be downloaded on the website of Microsoft, website: http://www.microsoft.com/en-us/download/details.aspx?id=11881
Or simply throw the following URL to the download tool download: http://222.200.129.44/download.microsoft.com/download/E/0/C/ E0c0709a-66e5-4113-9a6c-a5f65bf6717d/fcgisetup_1.5_x86_rtw.msi
The same is not stop the next installation, installation path is not your choice. After installation, open C:\WINDOWS\system32\inetsrv\fcgietx.ini with Notepad
Add the following text at the end:
[Types]
php=php
[PHP]
exepath=php Compressed Directory \php-cgi.exe
As pictured, where PHP's compressed directory is C:\php-5.4.43-nts-Win32-VC9-x86, save exit.
Third, the configuration of PHP
After fixing the above two components, the official can download the php5.4, because php5.5 later version does not support the WinXP kernel system, therefore can only use php5.4, and Apache is different, opens the PHP official website: http://cn2.php.net/ After downloads.php, download a php5.4 that is not thread safe in the following illustration:
After the download decompression to get a C:\php-5.4.43-nts-Win32-VC9-x86, the same is the following figure, the php.ini-production renamed to PHP.ini, directly with Notepad open.
The following modifications are made to the php.ini:
(1) Using Notepad's ctrl+f, locate the keyword "Extension_dir", and specify PHP's compressed directory, which is the running directory. To take note of before;
(2) Locate date in Date.timezone specify the time zone for our country's time zone, or write "Asia/shanghai" is also possible, the same attention to the previous note;
(3) The final positioning extension=, open the service component of PHP, the following image is zoned red Line annotated components before; remove, think of opening characters, PHP Mail Service, and Php_mysql service support. Save PHP.ini exit.
Then in the direct new PHP web Directory folder, here is C:\phpSite, or in a new 1.php, write a fairly classic code:
?
Phpinfo ();
?>
Four, Mount PHP to IIS
1, by starting-> settings-> Control Panel-> Management tools->internet Information Services (IIS) Manager to open IIS, right-click Web site-> new-> Web site
2, the Web site description arbitrary, here to Phpsite as an example, set the distribution site IP and port, this can be used directly 80 ports, because WINDOWS2003 80 port itself is occupied by IIS. The following IP for 192.168.80.128 this intranet address as an example.
3, the Web site folder set to just set up the C:\phpSite, permissions can default to read, if you want to upload files to "write" on the hook, of course, you can set up later, and then click Next to complete the creation of the site
4, after, in the site below more than just established phpsite, on its right key, properties, to further set.
5, turn to the "Home directory" select "Configuration"-> "Add"-> "Browse", select C:\WINDOWS\system32\inetsrv\fcgiext.dll, the extension filled out as. php. In the Action column, the security can be limited to: Get,head,post,debug. The following figure:
6, after the way to determine, complete the configuration, directly open the browser input: 192.168.80.128/1.php See the following site, the proof configuration is complete!
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.