Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

Windows 8.1, VS Community, IIS Express 10 and PHP

$
0
0

I have Windows 8.1 64-bit, VS Community 2015, IIS Express 10 and PHP having used WPI to install PHP 5.6.0 and PHP 5.6.0 for IIS Express.

When I try to run a PHP script from VS I get the error:

HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

When I try to Map FastCGI to the PHP location with

"C:\Program Files (x86)\IIS Express\appcmd.exe" set config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='"C:\Program Files (x86)\PHP\v5.6\php-cgi.exe"',resourceType='Unspecified']

I get the error message:

ERROR ( message:New add object missing required attributes. Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'PHP_via_FastCGI'. )

I've set the line manually to:

<add name="PHP_via_FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files (x86)\PHP\v5.6\php-cgi.exe" resourceType="Unspecified" />

but that doesn't help.


Viewing all articles
Browse latest Browse all 7363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>