How to Install IIS Web Server with PHP 7.0 on Microsoft Azure(Part 2)

logo_iis_php

Step 11. Now Install some packages for php.For this click on Add Roles & features in Server Manager.

add-roles-and-features-page-pic

Step 12. Now Add Roles and Features wizard will open & click on Next to continue.

add-roles-and-feature-wizard-page-pic

Step 13.  Choose Installation type.Among the two select Role-based or feature-based Installation & click on Next to continue.

select-installation-type-page-pic

Step 14. Now select your virtual hard disk on which to install the roles and features.Among the two options Select a server from the server pool option & click on Next.

select-destination-server-page-pic

Step 15. Expand the web server(IIS) options by clicking on it from the available set of server options .

web-server-package-page-pic

Step 16. Now Expand Web Server option under the Web Server(IIS).

webserver-roles-and-features-page-pic

Step 17. Expand the Application Development option under the Web Server & Select ASP NET 3.5 & CGI packages for PHP.Now Click on Next.

application-development-roles-nd-features-wizard

Step 18. Once you click on next it will show more servers list.Now click on Next again.

add-roles-and-feature-wizard-pic

Step 19. Confirm installation selections,it will show your selections which you selected previously to install.Click on Install to Finish.

add-roles-and-feature-wizard-confirmation-page


Step 20. After Installation move into your Web server IIS document root(C:\inetpub\wwwroot) & create and edit index.php file.

Paste the following code in index.php
<?php
phpinfo();
?>

 

Step 21. You can test your PHP by calling index page of php through any web browser.
http://ip/index.php
or
http://domainname/index.php