2010-04-15 100 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”路径,任何东西都可以工作。