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
如何解決網站讀取到特定頁面,會出現 Internal Server Error的問題 (資料庫修復功能講解) – unethost無限空間虛擬主機 技術分享部落格

如何解決網站讀取到特定頁面,會出現 Internal Server Error的問題 (資料庫修復功能講解)

今天講解的這個部份,是特殊的網站狀況,
有一php購物站,只要送出訂單後一陣子就會出現:
Internal Server Error

在未動過程式的情況下,這類狀況可能會跟資料庫的寫入有關,
這時就跑看看資料庫修復功能試試。
果然一試成功,另外除了cpanel的資料庫修復功能
最近經我們查看後,發現phpmyadmin的內建功能也有開啟,
所以一併介紹資料庫修復的新步驟。

 

1.登入cpanel控制台後,並搜索phpmy,並點擊之。

how_to_fix_internal-server-error_at_a_specific_web_page_01

2.選擇db name。

how_to_fix_internal-server-error_at_a_specific_web_page_02

3. 在資料表的最下方,將”全選“打勾,然後 “已選擇項目” 移到 “修復資料表” 。
千萬注意,不要移到清空或是刪除,因為一移過去就會開始動作。
清空 = 保留資料表並刪除其內的資料 ,
刪除 = 包含資料表及內容都刪掉。

how_to_fix_internal-server-error_at_a_specific_web_page_03

 

4.這樣就完成了。

how_to_fix_internal-server-error_at_a_specific_web_page_04

 

這次能順利處理,是透過經驗法則,
但真正遇到無法排除的情況,還是得觀察一下log檔,
才是比較好的檢查流程。

今天補一個小八掛,以前在單機版時代,
也有類似的修復工具。

看資料庫類型,
買一套廠商開發的修復程式,
可能數千台幣到數十萬都有,
當軟體公司銷售有資料庫的套裝程式後,
客戶每隔一段期間就需要跑一次修復,
就會派工程師到客戶公司,每次收費數千元。

(本篇教學由unethost.com客服撰寫)

延伸閱讀:如何備份Cpanel後台安裝的套裝程式?

安裝上述的軟體,我們提供虛擬主機試用,七天滿意保證,
功能完整使用不受限制,歡迎點我申請。