Install IIS and PHP and Deploy The CWS Sample
Install IIS and PHP and Deploy The CWS Sample
In this step of building a PHP website, you install IIS and FastCGI, download and install
PHP and the WinCache extension, and upload your PHP application.
The following list shows the tasks required to complete this step:
If you do not use Web PI to install IIS, you can install IIS manually. To install IIS
manually, use the following steps:
1. On the Start page, click the Server Manager tile, and then click OK.
2. In Server Manager, select Dashboard, and click Add roles and features.
3. In the Add Roles and Features Wizard, on the Before You Begin page, click
Next.
4. On the Select Installation Type page, select Role-based or Feature-based
Installation and click Next
5. On the Select Destination Server page, select Select a server from the server
pool, select your server, and click Next.
6. On the Select Server Roles page, select Web Server (IIS), and then click Next.
7. On the Select Features page, note the preselected features that are installed by
default, and then select CGI. This selection also installs FastCGI, which is
recommended for PHP applications.
8. Click Next.
9. On the Web Server Role (IIS) page, click Next.
10. On the Select Role Services page, note the preselected role services that are
installed by default, and then click Next.
Note
You only have to install the IIS 8 default role services for a static-content web
server.
11. On the Confirm Installation Selections page, confirm your selections, and then
click Install.
12. On the Installation Progress page, confirm that your installation of the Web Server
(IIS) role and required role services completed successfully, and then click Close.
13. To verify that IIS installed successfully, type the following into a web browser:
http://localhost
1. On the Start page, type Control Panel, and then click the Control Panel icon in
the search results.
2. In Control Panel, click Programs, and then click Turn Windows features on or
off.
3. In the Windows Features dialog box, click Internet Information Services, note
the preselected features that are installed by default, and then select CGI. This
selection also installs FastCGI, which is recommended for PHP applications.
4. Click OK.
5. To verify that IIS installed successfully, type the following into a web browser:
http://localhost
1. Open a browser to the following website: Microsoft Web Platform Installer 3.0.
2. Click Download It Now, and then click Run.
3. At the top of the Web Platform Installer window, click Products.
4. Click Frameworks, and then select the current version of PHP. (At this writing, the
current version is PHP 5.6.)
5. Click Install.
The Web Platform Installation page displays the version of PHP and its
dependencies that will be installed.
6. Click I Accept.
7. Click Finish.
See Also