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
解決 fastcgi 的問題: timeout 導致頁面異常或空白 – unethost無限空間虛擬主機 技術分享部落格

解決 fastcgi 的問題: timeout 導致頁面異常或空白

fastcgi_wp
在我們的主機設定裡,
關於php handler 的部份,
是統一使用 fastcgi
偶爾會有特殊問題出現,
這次客戶遇到的狀況是 timeout 的問題。

源由:
有時在套裝程式上面,安裝插件後;
運氣好就是一點事都沒有,相容性佳,馬上就可以順利使用。
運氣差一點,就會馬上掛掉,並彈出一個錯誤訊息。
如果只出現一個空白頁面,這時不用急不用慌,
查查error log檔,幾乎都有解。
除錯:

果不其然,在error log 裡有查到了下這一行,
似乎有機會靠主機設定可以解掉
(否則就可能是程式問題了):

mod_fcgid: read data timeout in 40 seconds,
 馬上將關鍵字拿到google查看看。
解決:
參考了幾個網站後,大致上決定好處理方向,
需要修改apache的參數,把timeout改成400,
也就是增設這一行: FcgidConnectTimeout 400
設定完成重開apache後,在重新測試,順利解決。
結論:
除了特殊開發之外(或插件),其實現在的套裝程式,是相對很穩定,
幾乎一裝上就沒什麼問題,後續就是效能調整,也是關於主機的部份,
如果有機會,我們會在多多介紹主機設定上的優化。

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

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

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