views:

185

answers:

1

I am trying to install php on my windows 7 machine. I have installed IIS 6.x and I have also installed php. I used this tutorial http://blogs.iis.net/bills/archive/2006/09/19/How-to-install-PHP-on-IIS7-_2800_RC1_2900_.aspx The only thing I didnt understand is this part: 4) Install IIS7, making sure you install the ISAPI Extension component (for PHP-ISAPI - which is what I use) or the CGI component (if you prefer CGI) during IIS installation (ISAPI and CGI are not installed by default)

Now when i go to localhost I get an error.

HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

4:         <handlers>
5:             <add name="PHP" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\web\php5\php-cgi.exe" resourceType="Unspecified" />
6:         </handlers>

Also php pages do not work in IE, please help

A: 

You're using FastCgiModule but you've linked to the step-by-step version that uses ISAPI.
There's a link to the fastcgi version in that document: http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/
And it also includes a section how to enable FastCGI support on IIS7.

VolkerK