我在运行PHP应用程序的IIS7中遇到启动错误(500)。
将system.webServer / httpErrors设置为详细解释了问题:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070005
Config Error Cannot read configuration file due to insufficient permissions
Config File \\?\C:\opt\php\public\web.config
将web.config添加到公共目录没有帮助,事实上它变得更糟, 没有文件,只是启动错误,文件持久性错误。
iusr允许dir&文件,在webconfig中尝试使用虚拟内容。
服务器上没有.NET / .ASP - 只有PHP。感谢任何有关简单修复的提示。