{"id":603,"date":"2022-10-17T21:08:45","date_gmt":"2022-10-18T04:08:45","guid":{"rendered":"https:\/\/blog.iabsolute.com\/?p=603"},"modified":"2022-10-17T21:08:45","modified_gmt":"2022-10-18T04:08:45","slug":"installing-php-on-iis","status":"publish","type":"post","link":"https:\/\/blog.iabsolute.com\/?p=603","title":{"rendered":"Installing PHP on IIS"},"content":{"rendered":"\n<p>First, we need to access the&nbsp;<a href=\"https:\/\/windows.php.net\/download\/\">PHP website for Windows<\/a>.<\/p>\n\n\n\n<p>Locate and download the&nbsp;Non-Thread Safe (NTS) versions of PHP.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"155\" alt=\"php windows download\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-windows-download.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-windows-download-200x58.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-windows-download-400x116.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-windows-download.webp 533w\"><\/p>\n\n\n\n<p>In our example, the following file was downloaded:&nbsp;php-7.2.9-nts-Win32-VC15-x86.zip.<\/p>\n\n\n\n<p>Create a directory named PHP on the root of your C drive.<\/p>\n\n\n\n<p>Extract the content of the file inside the PHP folder.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"672\" height=\"861\" alt=\"Windows PHP Folder\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-PHP-Folder.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-PHP-Folder-200x256.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-PHP-Folder-400x513.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-PHP-Folder-600x769.webp 600w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-PHP-Folder.webp 672w\"><\/p>\n\n\n\n<p>PHP for Windows requires the installation of a specific version of Microsoft Visual Studio.<\/p>\n\n\n\n<p>In our example, we downloaded the PHP package build VC15.<\/p>\n\n\n\n<p>PHP Build VC 15 requires the installation of the Microsoft&nbsp;Visual Studio version 2017.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"237\" alt=\"PHP Visual Studio\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-Visual-Studio.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-Visual-Studio-200x123.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-Visual-Studio.webp 384w\"><\/p>\n\n\n\n<p>Download and install&nbsp;<a href=\"https:\/\/aka.ms\/vs\/15\/release\/VC_redist.x86.exe\">Microsoft&nbsp;Visual Studio version 2017 x86<\/a>.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"310\" alt=\"Visual Studio installation x86\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Visual-Studio-installation-x86.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Visual-Studio-installation-x86-200x125.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Visual-Studio-installation-x86-400x251.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Visual-Studio-installation-x86.webp 495w\"><\/p>\n\n\n\n<p>After finishing the Visual Studio installation, we need to add the PHP directory to the PATH environment variable.<\/p>\n\n\n\n<p>Access the System properties window.<\/p>\n\n\n\n<p>Access the Advanced tab and click on the Environment variables button.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"475\" alt=\"System properties windows\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/System-properties-windows.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/System-properties-windows-200x226.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/System-properties-windows-400x452.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/System-properties-windows.webp 420w\"><\/p>\n\n\n\n<p>Select the PATH variable and click on the Edit button.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"394\" height=\"437\" alt=\"path variable\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/path-variable.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/path-variable-200x222.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/path-variable.webp 394w\"><\/p>\n\n\n\n<p>Add the PHP directory to the end of the PATH variable value.<\/p>\n\n\n\n<p>Copy to Clipboard<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">;C:\\PHP<\/pre>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"357\" height=\"154\" alt=\"PHP path variable\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-path-variable.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-path-variable-200x86.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-path-variable.webp 357w\"><\/p>\n\n\n\n<p>Open the Windows explorer application and access the PHP folder.<\/p>\n\n\n\n<p>Locate the file named PHP.INI-PRODUCTION.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"745\" height=\"147\" alt=\"php ini production\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-ini-production.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-ini-production-200x39.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-ini-production-400x79.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-ini-production-600x118.webp 600w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-ini-production.webp 745w\"><\/p>\n\n\n\n<p>Rename&nbsp;PHP.INI-PRODUCTION to&nbsp;PHP.INI<\/p>\n\n\n\n<p>Edit the file named PHP.INI.<\/p>\n\n\n\n<p>Here is the original file, before our configuration:<\/p>\n\n\n\n<p>Copy to Clipboard<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">; date.timezone =<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; fastcgi.impersonate = 1<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; cgi.fix_pathinfo=1<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; cgi.force_redirect = 1<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; extension_dir = \"ext\"<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; extension=bz2<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; extension=curl<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; extension=gd2<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; extension=ldap<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; extension=mbstring<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; extension=mysqli<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">; extension=openssl<\/pre>\n\n\n\n<p>Here is the file, after our configuration.<\/p>\n\n\n\n<p>Keep in mind that your timezone file may not be the same as mine.<\/p>\n\n\n\n<p>Copy to Clipboard<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">date.timezone = America\/Sao_Paulo<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">fastcgi.impersonate = 1<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">cgi.fix_pathinfo=1<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">cgi.force_redirect = 0<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">extension_dir = \"ext\"<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">extension=bz2<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">extension=curl<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">extension=gd2<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">extension=ldap<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">extension=mbstring<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">extension=mysqli<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">extension=openssl<\/pre>\n\n\n\n<p>Test the PHP installation.<\/p>\n\n\n\n<p>Open a DOS command prompt and enter the following command.<\/p>\n\n\n\n<p>Copy to Clipboard<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">C:\\&gt; php -info<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\u200b<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">phpinfo()<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">PHP Version =&gt; 7.2.9<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">System =&gt; Windows NT TECH-DC01 6.3 build 9600 (Windows Server 2012 R2 Standard dition) i586<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Build Date =&gt; Aug 15 2018 23:05:53<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Compiler =&gt; MSVC15 (Visual C++ 2017)<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">Architecture =&gt; x86<\/pre>\n\n\n\n<p>Congratulations! you installed PHP on the Windows server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tutorial &#8211; IIS Installation on Windows<\/h2>\n\n\n\n<p>Open the Server Manager&nbsp;application.<\/p>\n\n\n\n<p>Access the Manage menu and click on Add roles and features.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"194\" alt=\"Windows 2012 add role\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-2012-add-role-1.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-2012-add-role-1-200x58.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-2012-add-role-1-400x117.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-2012-add-role-1-600x175.webp 600w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/Windows-2012-add-role-1.webp 666w\"><\/p>\n\n\n\n<p>Access the Server roles screen, select the Web Server (IIS) option and click on the Next button.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"567\" alt=\"IIS Installation\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Installation.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Installation-200x142.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Installation-400x284.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Installation-600x425.webp 600w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Installation.webp 800w\"><\/p>\n\n\n\n<p>On the following screen, click on the Add features button.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"430\" height=\"428\" alt=\"IIS Features\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Features.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Features-200x199.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Features-400x398.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Features.webp 430w\"><\/p>\n\n\n\n<p>On the IIS service screen, select the CGI option and finish&nbsp;the installation.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"567\" alt=\"IIS enable CGI\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-enable-CGI.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-enable-CGI-200x142.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-enable-CGI-400x284.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-enable-CGI-600x425.webp 600w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-enable-CGI.webp 800w\"><\/p>\n\n\n\n<p>The IIS server was installed on your computer but we still need to configure the PHP integration.<\/p>\n\n\n\n<p>Open the IIS manager application and access the Handler Mappings option.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"823\" height=\"186\" alt=\"IIS Handles Mappings\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Handles-Mappings.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Handles-Mappings-200x45.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Handles-Mappings-400x90.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Handles-Mappings-600x136.webp 600w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Handles-Mappings-800x181.webp 800w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Handles-Mappings.webp 823w\"><\/p>\n\n\n\n<p>On the right part of the screen, select the option named: Add Module Mapping.<\/p>\n\n\n\n<p>On the Module mapping screen, you will have to enter the following information:<\/p>\n\n\n\n<p>Copy to Clipboard<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u2022 Request Path - *.php<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\u2022 Module - FastCGIModule<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\u2022 Executable - C:\\php\\php-cgi.exe<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\u2022 Name - PHP<\/pre>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"471\" height=\"408\" alt=\"PHP Module IIS\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-Module-IIS.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-Module-IIS-200x173.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-Module-IIS-400x346.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/PHP-Module-IIS.webp 471w\"><\/p>\n\n\n\n<p>Click on the button named: Request Restrictions.<\/p>\n\n\n\n<p>Select the File or Folder option and click on the OK button.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"471\" height=\"385\" alt=\"IIS PHP Request Restrictions\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-PHP-Request-Restrictions.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-PHP-Request-Restrictions-200x163.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-PHP-Request-Restrictions-400x327.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-PHP-Request-Restrictions.webp 471w\"><\/p>\n\n\n\n<p>Click on the OK button.<\/p>\n\n\n\n<p>If the following message is presented, click on the Yes button.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"485\" height=\"185\" alt=\"IIS Module mapping\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Module-mapping.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Module-mapping-200x76.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Module-mapping-400x153.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-Module-mapping.webp 485w\"><\/p>\n\n\n\n<p>Now, we need to configure IIS to accept index.php as a default page.<\/p>\n\n\n\n<p>Open the IIS manager application and access the Default Document option.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"817\" height=\"175\" alt=\"IIS default page PHP\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-default-page-PHP.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-default-page-PHP-200x43.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-default-page-PHP-400x86.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-default-page-PHP-600x129.webp 600w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-default-page-PHP-800x171.webp 800w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-default-page-PHP.webp 817w\"><\/p>\n\n\n\n<p>On the right part of the screen, select the option named: Add&#8230;<\/p>\n\n\n\n<p>On the Add default document window, you will have to enter the following information:<\/p>\n\n\n\n<p>Copy to Clipboard<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u2022&nbsp;index.php<\/pre>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"366\" height=\"166\" alt=\"IIS PHP support\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-PHP-support.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-PHP-support-200x91.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-PHP-support.webp 366w\"><\/p>\n\n\n\n<p>To finish the installation you need to restart the IIS service.<\/p>\n\n\n\n<p>Right click on the server name on the top left part of the screen and select the option Stop.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"245\" height=\"272\" alt=\"IIS stop\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-stop.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-stop-200x222.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-stop.webp 245w\"><\/p>\n\n\n\n<p>Right click on the server name on the top left part of the screen and select the option Start.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"226\" height=\"273\" alt=\"IIS start\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-start.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-start-200x242.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/IIS-start.webp 226w\"><\/p>\n\n\n\n<p>Congratulations! You have installed PHP on the Windows server.<\/p>\n\n\n\n<p>The IIS server is now supporting the use of PHP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Testing Your PHP installation on Windows IIS<\/h2>\n\n\n\n<p>Open the notepad application and create a document named test.php<\/p>\n\n\n\n<p>This document should be placed inside the WWWROOT folder.<\/p>\n\n\n\n<p>Copy to Clipboard<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?php<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">phpinfo();<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">?&gt;<\/pre>\n\n\n\n<p>Open your browser and enter the IP address of your IIS web server plus \/test.php<\/p>\n\n\n\n<p>In our example, the following URL was entered in the Browser:<\/p>\n\n\n\n<p>\u2022 http:\/\/35.162.85.57\/test.php<\/p>\n\n\n\n<p>The following content should be presented.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" width=\"945\" height=\"342\" alt=\"php configuration file\" src=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-configuration-file.webp\" srcset=\"https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-configuration-file-200x72.webp 200w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-configuration-file-400x145.webp 400w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-configuration-file-600x217.webp 600w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-configuration-file-800x290.webp 800w,https:\/\/d1ny9casiyy5u5.cloudfront.net\/wp-content\/uploads\/2018\/08\/php-configuration-file.webp 945w\"><\/p>\n\n\n\n<p>The PHP installation on IIS was tested successfully.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First, we need to access the&nbsp;PHP website for Windows. Locate and download the&nbsp;Non-Thread Safe (NTS) versions of PHP. In our example, the following file was downloaded:&nbsp;php-7.2.9-nts-Win32-VC15-x86.zip. Create a directory named PHP on the root of your C drive. Extract the &hellip; <a href=\"https:\/\/blog.iabsolute.com\/?p=603\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-603","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=603"}],"version-history":[{"count":1,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/603\/revisions"}],"predecessor-version":[{"id":604,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=\/wp\/v2\/posts\/603\/revisions\/604"}],"wp:attachment":[{"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iabsolute.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}