Setting up IIS 10 & PHP 7By Dag, on December 30th, 2016
Some reminder notes for setting up a working IIS and PHP environment.
- Install the IIS role/feature w/CGI support. - Download (NTS / Non-Thread Safe) and unzip at e.g. C:\PHP - Register index.php as standard document - Check settings in php.ini fastcgi.impersonate = 1 fastcgi.logging = 0 cgi.fix_pathinfo=1 cgi.force_redirect = 0 - Modules I'd like to add as a minimum: extension=php_bz2.dll extension=php_curl.dll extension=php_gd2.dll extension=php_gettext.dll extension=php_mbstring.dll extension=php_mysqli.dll - Add a "Module Mapping" to "Handler Mappings" in IIS: Request path: *.php Module: FastCgiModule Executable: C:\[Path to PHP installation]\php-cgi.exe Name: PHP_via_FastCGI + Request Restrictions: "File or folder" - Install Visual C++ 2015 redist (x86 version) to avoid 500 server error.