最近裝了測試機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.csdn.net/21aspnet/article/details/6998718
中的方法問題得到解決
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,同時取消這一行代碼的注釋,即去掉前面的分號就可以了。