Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot get PHP to work on IIS web server

Tags:

php

iis

webserver

I cannot figure out how to get PHP to work with 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 module list This is what I did, Went to http://www.microsoft.com/web/platform/phponwindows.aspx clicked on install (seemed like it worked). But, I cannot get my php pages to work! Ted

like image 228
Ted pottel Avatar asked Mar 02 '11 21:03

Ted pottel


People also ask

How enable PHP in IIS?

In the System Properties window, select the Advanced tab, and then click Environment Variables. Under System variables, select Path, and then click Edit. Add the path to your PHP installation folder to the end of the Variable value, for example ;C:\PHP . Click OK.

How do I know if PHP is enabled in IIS?

<? php phpinfo(); ?>

Can IIS run PHP files?

Configuring PHP on IISYou can open the “php. ini” file and edit it if you're familiar with configuring PHP. You can also open the PHP Manager in IIS Manager.


1 Answers

You probably don't have the CGI module for IIS installed. Open up the Microsoft Web Installer again. Look in the server section of IIS: CGI and install it.

For completeness, you can check your installed modules by opening up the Internet Information Services Manager. Expand the Sites to your default website (or other site if you have another setup). In the IIS section, look for and open up Modules. If you don't see FastCgiModule, then you'll have to install that via the Web Installer (looks like it's bundled with the regular Cgi Module).

like image 123
Leniency Avatar answered Sep 30 '22 06:09

Leniency