2021年7月8日 星期四

Apache + PHP FPM Increase Timeout

Apache + PHP FPM 的模式,
若程式執行會超過一分鐘,光是調整 php.ini 的 max_execution_time 是不夠的,
就需要調整 Apache 的 Timeout,預設是 60
PHP FPM 的模式,是走 proxy mode,所以 ProxyTimeout 也要調整,

例如: 設成五分鐘
Timeout 300
ProxyTimeout 300

沒有留言:

New SSH client to old SSH server

從新版 SSH 8.x 連到舊版 6.x SSH server 若出現 Unable to negotiate with x.x.x.x port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss ...