Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24
使用cpanel,確定ftp有檔案,系統配置也沒問題,但為什麼瀏覽器只會顯示 404 not found ? – unethost無限空間虛擬主機 技術分享部落格

使用cpanel,確定ftp有檔案,系統配置也沒問題,但為什麼瀏覽器只會顯示 404 not found ?

這可能是使用cpanel,偶爾會遇到一個問題,同台主機每個帳號配置都相同,其他的網站都可以正常顯示網站內容,但是這個網站,檢查過權限是沒問題的,檔案也都存在,但是瀏覽器就是只會顯示 404 not found 。

這是很有趣的一個除錯經驗:

1. 瀏覽器輸入 xxxx.com 會跳轉到 xxxx.com/cgi-sys/defaultwebpage.cgi,如下圖:
404_2

 

2. 瀏覽特定路逕的檔案,則是出現 404 not found ,如下圖:
404_1

3. 查看 error_log 檔,出現相關字串為: File does not exist: /usr/local/apache/htdocs/ 。

看了error_log提示,這似乎是有指向的問題,重新檢查了域名 dns  ip (A) 指向, 以及 whm 裡所配置的IP,結果找到問題了,這是域名指錯IP引起的,趕快修正後,恢復正常了,最基本的設定,真的是會是忙中有錯,如果是使用自架 name server ,則這樣的問題是不會發生的。