IIS 500 – 内部服务器错误解决方案

本文提供了解决Windows 2008使用IIS7.5时遇到的500–内部服务器错误等常见问题的方法,并介绍了配置优化步骤,帮助用户提高网站稳定性和性能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近装了测试机windows2008使用IIS7.5各种不习惯呀,各种问题,唉。。 今天又遇到了“500 – 内部服务器错误。 您查找的资源存在问题,因而无法显示。”的问题,网上查找了一下,找到解决办法,这里给大家分享一下。。

解决办法:

1、解决方法:打开IIS,在功能视图中找到“错误页”,双击进去后,看最右边的“操作”下的“编辑功能设置…”,将“错误响应”下的“详细错误”勾上。

2、打开控制面板→管理工具→Internet 信息服务(IIS)管理器→双击“ASP”图标,然后在右边的窗口中展开“调试属性”,把“将错误发送到浏览器”设为True即可。微软基于安全性考虑不将错误信息发送给浏览器,记得在网站正式发布时,还原此项设置。

3、本地浏览器去掉了“显示http友好错误提示”选项,显示:php-cgi.exe - FastCGI 进程超过了配置的活动超时时限

4、解决办法:IIS7->FastCGI设置->双击"php-cgi.exe"->"活动超时" 项默认是设置为70(秒),改为600(10分钟,此处根据需求设置可以略高~)

转载自 http://www.waitalone.cn/iis-500-internal-server-error-solution.html

 

今天我在腾讯云里安装了阿里云的一键安装PHP环境后 新建立的网站访问时出现500错误,采用 解决办法<1>;

 之后又出现

HP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. ......的错误页

然后使用http://blog.youkuaiyun.com/21aspnet/article/details/6998718 

 中的方法问题得到解决

在写php程序中有时会出现这样的警告:
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in D:\PHPWEB\news\file.php on line 17 。这是因为PHP所取的时间是格林威治标准时间,所以和你当地的时间会有出入格林威治标准时间和北京时间大概差8个小时左右,我们可以按照下面的方法解决: 
1、在页头使用date_default_timezone_set()设置我的默认时区为北京时间,即  <? php date_default_timezone_set("PRC");  ?>就可以了。 
2、在php.ini中设置date.timezone的值为PRC,设置好以后的为:date.timezone=PRC,同时取消这一行代码的注释,即去掉前面的分号就可以了。

 

 

转载于:https://www.cnblogs.com/farcall/p/3855098.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值