How to Install IIS on Windows 10

To enable IIS and the required IIS components on Windows 10, do the following:

 

    1.Open Control Panel and click Programs and Features > Turn Windows features on or off.
    1. 2.Enable Internet Information Services.

Install PHP

  1.   Step 1: Download the PHP files. Get the latest PHP 8 x64 Non Thread Safe ZIP package from https://www.php.net/downloads.php.
    1.   Step 2: Extract the files. ...
      1.   Step 3: Configure php. ...
        1.   Step 4: Add C:\php to the PATH environment variable. ...
          1.   Step 5: Configure PHP 
            1.  Step 6: Test a PHP file.
            2. Testing if PHP is installed properly

              Create a php file containing code <?php echo phpinfo(); ?> and save it as test.php.
              Run this file on your web server and if you get an output like this: