title: PHP not compiling to IIS 7
body: <p>I have set up an IIS 7 to a Windows Server machine. The idea is to access a working php site through a network computer and for the php to be able to be compiled.</p>
  
  <p>Steps i did:</p>
  
  <ol>
  <li>Downloaded PHP 5.6.31 (i have to use the specific version)</li>
  <li>Unzip php files in c:\php directory.</li>
  <li>Rename php-ini-production to php.ini</li>
  <li>Copy the same file to c:\Windows</li>
  <li>Create a website in IIS.</li>
  <li>Added 2 bindings to website with following data:
  -Type: http, host name: test.local, port: 81, ip address: *
  -Type; http, host name: blank, port: 81, ip address: the ip address of the 
    Workstation hosting the IIS</li>
  <li>Added at IIS site and new website at Handler mappings the following:
  request path: *.php, Module: FastCgiModule, Executable: C:\php\php-cgi.exe
  and clicked request permissions and on Mapping tab i checked Invoke handler only if request is mapped to  and i selected File or folder</li>
  <li>Added at IIS  and new website at MIME types the following:
   file name extension: .php, MIME type: application/x-httpd-php</li>
  <li>At IIS at ISAPI and CGI restrictions i added php-cgi.exe path and clicked Allow extension path to execute.</li>
  <li>I installed Visual C++ Redistributable for Visual Studio 2012 Update 4</li>
  <li><p>In php.ini file (the one i renamed above), i uncommended and set values for the below:</p>
  
  <p>-fastcgi.impersonate = 1
  -cgi.fix_pathinfo =
  -cgi.force_redirect = 0 
  -extension_dir = 'ext'</p></li>
  <li><p>From control panel from System->Properties->Advanced system settings->Environmental variables, at the end i added ;c:\php</p></li>
  <li>Restarted iis</li>
  </ol>
  
  <p>Now when on server i run server's ip for example: 10.0.0.1:81/index.php (where index.php is a file inside my website) i get a http Error 500, C:\php\php-cgi.exe - The FastCGI process exited unexpectedly with error code: 0xc0000135</p>
  
  <p>When i run the same from network computer i get just a 500-Internal server error.</p>
  
  <p>When at network computer i try to access the index.php file as a file (network location) i see just the php code and not the compilation.</p>
  
  <p>Any ideas?Thank you in advance</p>