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,同時取消這一行代碼的註釋,即去掉前面的分號就能夠了。
相關文章
相關標籤/搜索