iis7.5 Installation Configuration PHP Environment detailed clear tutorial, three steps to achieve "graphics"
iis7.5 is installed in the Win7, win8 in the Web server, Win2003, Win2000 Web server using iis6.0, because Win7, win8 system compared to Win2003, Win2000 with the change of the new leather surface of the difference, Therefore, the configuration of the iis7.5 must also be familiar with a double. But these are operational things, like the first contact with iis6.0, the operation several times slowly familiar.
Now I need the Web server to run the PHP program, so I want to configure the PHP environment. At first thought is easier, because in the iis6.0 configured countless times, the star outside the PHP automatic installation 30 seconds easy to fix, but when opened iis7.5, only then found that the original iis6.0 familiar things most in iis7.5 found, had to grope for a turn. This article, combined with my own practical experience, describes how to install PHP in iis7.5.
Preparing Files
First make sure you have downloaded and unpacked the PHP program files, and if not, download one first. PHP Program files are not required to install, the download of the compressed package into any folder can be. In this case, PHP 5.2.13 is used.
1. Add an ISAPI filter
Go to Control Panel-programs-turn Windows features on or off, expand Internet Information Services, tick ISAPI filters, and finally click the OK button, as shown in:
Figure 1: Open ISAPI filter
2. Setting up ISAPI
1) Open IIS Manager
Go to IIS Manager (method: Right-click on "Computer", click "Manage", expand "Services and Applications" in the pop-up interface, and then double-click Internet Information Services (IIS) Manager) to enter the IIS management interface, such as.
Figure 2: Open IIS Manager
2) Add the ISAPI path to PHP
In 2, double-click the "ISAPI and CGI Restrictions" icon and then go to the settings screen, such as.
Figure 3: Adding a PHP ISAPI
As shown in 3, click "Add", enter the PHP ISAPI path in the pop-up window, that is, PHP unpacking the Php5isapi.dll file path, the description of the text is arbitrary fill, such as "PHP", tick "allow to execute extension path", and then click "OK".
3. Add PHP Handler Mappings
Click on the computer name (correct: should be clicked "site" under the need to set the name of the site, rather than the top of the computer name, this setting is for a site), you will see the right of "IIS" under the "Handler mapping" icon, such as.
Figure 4:iis Handler Mappings
Double-click on the "Handler mappings" icon to enter the Setup interface, such as:
Figure 5: Adding a PHP handler mapping
In the Settings screen click "Add script Map ...", and then fill in the corresponding content in the pop-up window, the request path is "*.php", the executable file is the PHP decompression package php5isapi.dll file path, as shown in Figure 3 fill in the same path. The name is arbitrary, can fill "php", request limit not set, click "OK" add complete.
4. Test PHP
Enter the following lines of code in Notepad:
<?php
Phpinfo ();
?>
Save as: info.php, put in the site directory, and then launch the browser, access http://localhost/info. PHP, if you see the following screen to prove that the installation is successful!
Figure 6:php running a successful interface
In particular, if you are using a 64-bit system, then access to PHP will appear "404 Not Found" error, you also need to set up "enable 32-bit application", very simple, see here "64-bit win2003/win2008 system iis6.0/ 7.5 Methods of configuring PHP.
iis7.5 Installation Configuration PHP Environment detailed clear tutorial, three steps to achieve "graphics"