Apache proxy_fcgi – The Timeout Specified Has Expired on RHEL

Apache proxy_fcgi – The Timeout Specified Has Expired on RHEL

 

Apache proxy_fcgi – The Timeout Specified Has Expired on RHEL

Hello guys. In this article, I’m going to share how to fix the timeout issue of Apache PHP-FPM.

Table of Contents

  1. Installation
  2. PHP-FPM
  3. Non PHP-FPM
  4. Restart Webserver

Installation

First, install mod_fcgid:

sudo yum install mod_fcgid -y

PHP-FPM

If you are using PHP-FPM, then follow this solution. Open or create a conf file:

sudo nano /etc/httpd/conf.modules.d/00-proxy_timeout.conf

Then add these lines and save:

Timeout 1200
ProxyTimeout 1200

1200 seconds = 20 minutes. You can set your desired value.

Non PHP-FPM

If you are not using PHP-FPM, then follow this solution. Open fcgid.conf file:

sudo nano /etc/httpd/conf.d/fcgid.conf

Then add lines and save:

FcgidIdleTimeout 1200
FcgidProcessLifeTime 1200
FcgidConnectTimeout 1200
FcgidIOTimeout 1200

Restart Webserver

Now restart webserver:

sudo systemctl restart httpd
sudo systemctl restart php-fpm
 That’s all. Thanks for reading. ?

StarCode Kh

Website that learns and reads, PHP, Framework Laravel, How to and download Admin template sample source code free.

Post a Comment

Previous Post Next Post
close