php iis7 500错误信息的解决办法:首先打开“php.ini”文件;然后修改内容为“display_errors = on;”;接着在php网站的根目录下新建一个“web.config”文件;最后根据详细的错误进行解决即可。

推荐:《PHP视频教程》
IIS7下,显示PHP错误(不显示500错误,而显示详细错误)
玛德,IIS就是个坑,害得老子进行摸索了那么久,才找到了解决方法:
1、除了将php.ini配置为:
立即学习“PHP免费学习笔记(深入)”;
display_errors = on; error_reporting = E_ALL & ~E_NOTICE;
2、还要再php网站的根目录下面新建一个web.config文件:
iis的配置, 注意你首先需要在你的网站根目录添加web.config文件:
代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
</system.web>
<system.webServer>
<httpErrors errorMode="DetailedLocalOnly" existingResponse="PassThrough"></httpErrors>
</system.webServer>
</configuration>以上就是php iis7 500错误信息怎么显示的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号