error log 錯誤訊息如下:
[warn] [client 127.0.0.1] mod_fcgid: read timeout from pipe [error] [client 127.0.0.1] Premature end of script headers: index.php可知是 PHP 執行時間超過系統設定。
若 PHP 執行時間是預期中的,則可將 mod_fcgid 的Timeout 時間設長一點
<IfModule mod_fcgid.c>
.......
#FcgidIOTimeout 120
#FcgidIdleTimeout 120
#將時間改長
FcgidIOTimeout 1200
FcgidIdleTimeout 1200
......
</IfModule>
參考:
php - fread timeout with 'mod_fcgid: read timeout from pipe' - Stack Overflow
沒有留言:
張貼留言