close

[Solved] apache proxy_fcgi – The timeout specified has expired – Error dispatching request

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error apache proxy_fcgi – The timeout specified has expired – Error dispatching request in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How apache proxy_fcgi – The timeout specified has expired – Error dispatching request Error Occurs?

Today I get the following error apache proxy_fcgi – The timeout specified has expired – Error dispatching request in php.

How To Solve apache proxy_fcgi – The timeout specified has expired – Error dispatching request Error ?

  1. How To Solve apache proxy_fcgi – The timeout specified has expired – Error dispatching request Error ?

    To Solve apache proxy_fcgi – The timeout specified has expired – Error dispatching request Error You can add timeout= to the ProxyPassMatch .
    ProxyPassMatch ^/(.+\.php.*)$ fcgi://127.0.0.1:9000/<docroot>/$1 timeout=1800

  2. apache proxy_fcgi – The timeout specified has expired – Error dispatching request

    To Solve apache proxy_fcgi – The timeout specified has expired – Error dispatching request Error You can add timeout= to the ProxyPassMatch .
    ProxyPassMatch ^/(.+\.php.*)$ fcgi://127.0.0.1:9000/<docroot>/$1 timeout=1800

Solution 1

I know the question is old but I had this problem with WordPress while doing multiple post deletes and I found it hard to find a solution so I’m putting this down for me (in the future) as much as everyone else with the same problem.

For CentOS 8 ensure you have installed fast cgi and optionally php-fph

yum install mod_fcgid php-fpm

Then if no php-fpm edit:

vi  /etc/httpd/conf.d/fcgid.conf

adding the lines

FcgidIdleTimeout 1200
FcgidProcessLifeTime 1200
FcgidConnectTimeout 1200
FcgidIOTimeout 1200

If php-fpm is installed edit/create:

vi /etc/httpd/conf.modules.d/00-proxy_timeout.conf

and add the lines

Timeout 1200
ProxyTimeout 1200

The restart php-fpm – if installed and httpd

Solution 2

You can add timeout= to the ProxyPassMatch .

ProxyPassMatch ^/(.+\.php.*)$ fcgi://127.0.0.1:9000/<docroot>/$1 timeout=1800

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment