回答
WebMatrix中使用IIS Web服務器快車(IIS快速獲取與WebMatrix中一同安裝),你需要配置IIS Express使用安裝了PHP。從IIS Express安裝文件夾(%programfiles%\ IIS Express)運行以下兩個命令並重新啓動WebMatrix。
Appcmd.exe的設置配置/section:system.webServer/fastCGI /+[fullPath='c:{php_installation-folder}\php-cgi.exe']
Appcmd.exe的集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。 – Kieran 2013-01-24 06:45:42
我發現了兩件事:PHP設置%PHPRC%到我的php安裝目錄,這很方便,路徑應該設置爲'\ *。php'和動詞'\ *'。所以在兩者之間: 'Appcmd.exe的設置配置/section:system.webServer/fastCGI/+ [FULLPATH = '^%PHPRC ^%PHP-cgi.exe文件']' 和 'Appcmd.exe的集config /section:system.webServer/handlers /+[name='PHP_via_FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='^%PHPRC^%php-cgi。 exe文件」,= resourceType爲 '未指定']' – Kieran 2013-01-24 06:53:47
- 1. 無法安裝WebMatrix的
- 2. 使用WebMatrix安裝Joomla - HTTP錯誤500
- 3. 在Webmatrix 2中安裝Entity Framewok v5 RC
- 4. PHP Webmatrix SQL Server數據庫連接
- 5. Php不在webmatrix中創建會話
- 6. 當我們安裝了MVC 4時,WebMatrix 2 Beta未安裝
- 7. WebMatrix在
- 8. WebMatrix + MySQL鏈接
- 9. Webmatrix搜索
- 10. WebMatrix ReCaptcha Helper
- 11. 與WebMatrix的
- 12. Webmatrix,Razor和Sessions
- 13. WebMatrix WebSecurity PasswordSalt
- 14. 替代Response.Redirect在Webmatrix
- 15. 託管WebMatrix頁面
- 16. Webmatrix重置密碼
- 17. WebMatrix給404帶UrlRouting
- 18. 記得在WebMatrix中
- 19. 深入覆蓋WebMatrix?
- 20. 如何從WebMatrix的
- 21. WebMatrix主機文件
- 22. WebMatrix而不是IIS
- 23. 使用webmatrix安裝nopcommerce時遇到的麻煩
- 24. 從Webmatrix導出MySQL數據庫安裝腳本
- 25. InstallShield 2009預安裝
- 26. 預裝Windows 8,efi
- 27. 預安裝代碼
- 28. Mac OS X預裝Python和Python.org預裝Python有什麼區別?
- 29. 預先php divs
- 30. XSS預防PHP
更多詳情請致電 – Gordon 2011-06-13 10:59:07