Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/253.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
带有预装PHP的Webmatrix_Php_Webmatrix_Iis Express - Fatal编程技术网

带有预装PHP的Webmatrix

带有预装PHP的Webmatrix,php,webmatrix,iis-express,Php,Webmatrix,Iis Express,我已经安装了PHP5.3.6,有没有办法指导WebMatrix使用已安装的PHP 谢谢WebMatrix使用IIS Express Web服务器(IIS Express随WebMatrix一起安装),您需要配置IIS Express以使用已安装的PHP。从IIS Express安装文件夹(%programfiles%\IIS Express)运行以下两个命令,然后重新启动WebMatrix appcmd.exe set config/section:system.webServer/fastCG

我已经安装了PHP5.3.6,有没有办法指导WebMatrix使用已安装的PHP


谢谢

WebMatrix使用IIS Express Web服务器(IIS Express随WebMatrix一起安装),您需要配置IIS Express以使用已安装的PHP。从IIS Express安装文件夹(%programfiles%\IIS Express)运行以下两个命令,然后重新启动WebMatrix

  • appcmd.exe set config/section:system.webServer/fastCGI/+[fullPath='c:{php\u installation-folder}\php cgi.exe']

  • appcmd.exe set config/section:system.webServer/handlers/+[name='PHP_via_FastCGI',path='.PHP',verb='',modules='FastCgiModule',scriptProcessor='c:{PHP_installation-folder}\PHP cgi.exe',resourceType='Unspecified']


  • 非常感谢。虽然WebMatrix说我使用的是未知版本的PHP,但这对我来说很有效。不过我发现了两件事:PHP将%PHPRC%设置到我的PHP安装目录,这很方便,路径应该设置为“*.PHP”和动词“*”。因此,在这两者之间:
    appcmd.exe set-config/section:system.webServer/fastCGI/+[fullPath='^%PHPRC^%php-cgi.exe']
    appcmd.exe set-config/section:system.webServer/handlers/+[name='PHP\'via_FastCGI',path='*.PHP',verb='*',modules='FastCgiModule',scriptProcessor='^%PHPRC^%PHP cgi.exe',resourceType='Unspecified'.