Cannot get PHP to work on IIS web server

I cannot figure out how to get PHP to work with the IIS web server. Currently, when I try to load a php page, I get the following message: HTTP Error 500.21 - Internal Server Error Handler "PHP52_via_FastCGI" has a bad module "FastCgiModule" in its list of modules This is what I did, I went to http: / /www.microsoft.com/web/platform/phponwindows.aspx clicked on the installation (it seemed like it worked). But I can't get php pages to work! Ted

+5
source share
3 answers

You probably have not installed the CGI module for IIS. Open Microsoft Web Installer again. Look in the IIS: CGI server section and install it.

For completeness, you can check the installed modules by opening the Internet Services Manager. Deploy the Sites to your default website (or to another site if you have a different setting). In the IIS section, find and open Modules. If you do not see FastCgiModule, you will have to install it through the Web Installer (it looks like it is connected to the regular Cgi module).

+8
source

You need to enable CGI support in IIS. This is not enabled by default and is one of the options in Windows Properties when choosing to install IIS. See here for instructions on how to enable it: http://www.php.net/manual/en/install.windows.iis7.php

MS Web Installer .

+3

:

  • IIS- > - >
  • : *.php
  • : FastCgiModule
  • Executable file: C: \ PHP \ php-cgi.exe (depends on where php is installed)
  • Name: WhatEverYouWannaCallIt
  • Ok
  • YES
0
source

All Articles