How can PHP be successfully set up on an IIS server?

To successfully set up PHP on an IIS server, you need to install the PHP runtime on the server, configure IIS to recognize PHP files, and ensure that PHP scripts are executed correctly by the server.

1. Download the PHP runtime from the official PHP website and install it on your IIS server.
2. Open IIS Manager, select the server node, and double-click on "Handler Mappings".
3. Click on "Add Module Mapping" and fill in the required fields with the following information:
   - Request path: *.php
   - Module: FastCgiModule
   - Executable: C:\Path\to\php-cgi.exe
   - Name: PHP_via_FastCGI
4. Click OK to save the settings and restart the IIS server to apply the changes.