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

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

解决办法:

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

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

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

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

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

 

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

 以后又出现工具

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.csdn.net/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个小时左右,咱们能够按照下面的方法解决: 
一、在页头使用date_default_timezone_set()设置个人默认时区为北京时间,即  <? php date_default_timezone_set("PRC");  ?>就能够了。  二、在php.ini中设置date.timezone的值为PRC,设置好之后的为:date.timezone=PRC,同时取消这一行代码的注释,即去掉前面的分号就能够了。
相关文章
相关标签/搜索