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

沒有留言:

Fix Unable to detect release version (use '--releasever' to specify release version)

rpm -ivh https://mirror01.idc.hinet.net/CentOS/8-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-6.el8.noarch.rpm rpm -ivh https://mirror...