Quantcast
Viewing all articles
Browse latest Browse all 145

Apache – The timeout specified has expired

Image may be NSFW.
Clik here to view.

測試環境 CentOS 8

Apache 的 error_log 出現以下錯誤訊息.

[Tue Nov 15 14:13:42.015901 2022] [proxy_fcgi:error] [pid 52264:tid 140063077807872] (70007)The timeout specified has expired: [client 10.58.211.183:58668] AH01075: Error dispatching request to : (polling)

解法參考 – https://shouts.dev/articles/apache-proxy-fcgi-the-timeout-specified-has-expired-on-rhel

安裝 mod_fcgid 套件.

[root@localhost ~]# yum install mod_fcgid -y

設定 Apache 的 PHP-FPM (PHP).

[root@localhost ~]# vi /etc/httpd/conf.modules.d/00-proxy_timeout.conf
Timeout 1200
ProxyTimeout 1200

單位為秒 1200 秒等於 20 分鐘.

重新啟動 Apache 與 PHP-FPM (PHP).

[root@localhost ~]# systemctl restart httpd
[root@localhost ~]# systemctl restart php-fpm

Viewing all articles
Browse latest Browse all 145

Trending Articles