I'm trying to automate the provisioning of a Windows 2012 server, but I'm having trouble getting PHP to work.
This is the command I'm using to add a handler mapping to IIS:
New-WebHandler -Name "PHP-FastCGI" -Path "*.php" -Verb "*" -Modules "FastCgiModule" -ScriptProcessor "c:\php\php-cgi.exe" -ResourceType File
This correctly adds the handler mapping, so far so good.
However, I still need to manually create a FastCGI application for the executable to make it work. What is the PowerShell command to automate this? I can't find anything that points me in the right direction.