2010-04-15 67 views
0

我有全新安裝的IIS 7 - 我只是添加了Web平臺安裝程序和PHP 5.2。
但是,試圖訪問一個簡單的test.php的文件時(只是在它的phpinfo()),我得到的錯誤名單如下:使用PHP 5.2的IIS 7 - 錯誤500

• IIS was not able to access the web.config file for the Web site or application. 
    This can occur if the NTFS permissions are set incorrectly. 
• IIS was not able to process configuration for the Web site or application. 
• The authenticated user does not have permission to use this DLL. 
• The request is mapped to a managed handler but the .NET Extensibility Feature 
    is not installed. 

域名與點網面板中創建的,但我不認爲這與這個問題有關,除非它使用特定的用戶? 也許我需要通過點網面板添加PHP?

的,我做錯了什麼在這裏的任何想法?

回答

0

這是我的錯誤配置。在「處理程序映射」下,我添加了一個php處理程序,它在網站服務器級別設置時已經位於本地。
刪除本地處理程序後,我可以看到phpinfo()輸出。

0

我對PHP 5.3有同樣的問題。

通過使用Web平臺安裝我的網站有一個處理程序映射稱爲PHP53_via_FastCGI並指向「%programfiles%\iis express\PHP\v5.3\php-cgi.exe

的問題是,「iis express」文件夾中的「Program Files (x86)」文件夾和「%programfiles%」指向「Programs」文件夾。

您只需瀏覽處理程序映射中正確的「php-cgi.exe」路徑,任何東西都可以工作。