3. Create a new environment variable PHPRC with \php. This is needed to access php.ini.
4. Now we need to change IIS configuration to run PHP scripts as CGI scripts. Click Control Panel,
Internet Information Service (IIS), Default Web Site, and Properties. On the Directory tab,
first set Execute Permissions to "Scripts only". Then click Configuration to add a new
Application Mapping with Executable=\php\php-cgi.exe, Extension=.php, and Script engine checked.
5. Stop and start Default Web Site in IIS.
6. Copy Hello.php to \inetpub\wwwroot.
7. Run Internet Explorer (IE) with http://localhost/Hello.php. You should see:
Hello world!
Congratulation, you have added PHP to IIS as CGI correctly!