IIS Note
If your whoami page (as indicated by @webbouk) comes up with nt authority\iusr, change your anonymous authentication identity as described in the answer here: https://serverfault.com/questions/961104/php-fastcgi-running-as-iusr-instead-of-iis-apppool-xxx