What are common pitfalls when setting up PHP on a Windows Server with IIS?

One common pitfall when setting up PHP on a Windows Server with IIS is not configuring the correct PHP handler mapping in IIS. To solve this, you need to add a FastCGI handler for PHP in IIS and map it to the PHP executable. ```xml <configuration> <system.webServer> <handlers> <add name="PHP_via_FastCGI" path="*.php" verb="GET,HEAD,POST" modules="FastCgiModule" scriptProcessor="C:\php\php-cgi.exe" resourceType="Either" requireAccess="Script" /> </handlers> </system.webServer> </configuration> ```