Error loading site with PHP-FPM and nginx_apach

arazit

Verified User
Joined
Aug 20, 2008
Messages
184
Hello,
I installed a latest version of Centos 6.5 and latest directadmin with php-fpm 5.4 and nginx_apache today.
I get a error in one of my sites(phpfox script).
Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

and get this error in apache error log:

[Wed Sep 03 04:42:08.284529 2014] [proxy_fcgi:error] [pid 9787:tid 139928922969856] (70007)The timeout specified has expired: [client 2.187.253.17:55969] AH01075: Error dispatching request to : (polling)

How to do for solve it?
 
It seems the script is taking long to execute :) I'd recommend trying "ProxySet timeout=1800" in user_virtual_host.conf (copy it from /usr/local/directadmin/data/templates to /usr/local/directadmin/data/templates/custom, then add "ProxySet timeout=1800" below "ProxySet min=0" and run "./build rewrite_confs" using CB 2.0. More info: http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxytimeout.
 
My page load a white page and I get now this error in apache logs:


[Thu Sep 04 22:08:32.405508 2014] [proxy_fcgi:error] [pid 20930:tid 139665459889920] [client 100.43.90.10:35873] AH01067: Failed to read FastCGI header
[Thu Sep 04 22:08:32.405529 2014] [proxy_fcgi:error] [pid 20930:tid 139665459889920] (104)Connection reset by peer: [client 100.43.90.10:35873] AH01075: Error dispatching request to :
[Thu Sep 04 22:08:32.405805 2014] [proxy_fcgi:error] [pid 20930:tid 139665218623232] [client 66.249.65.52:44406] AH01067: Failed to read FastCGI header
[Thu Sep 04 22:08:32.405819 2014] [proxy_fcgi:error] [pid 20930:tid 139665218623232] (104)Connection reset by peer: [client 66.249.65.52:44406] AH01075: Error dispatching request to :
 
Is it only 1 website affected or all? Would I be able to check the server? (free of charge)
 
I get this error in one of my sites in this server.
I have 2 other site in server which used from phpfox but I dont get error in this sites.
I get another error too in another server with php-fpm.
I get file not fond when I loaded the site :http://mydomain.com/admin/dashboard
This site worked fine with php_mod "suphp" but give error "file not fond" with "php-fpm"
Thank you
 
I have the same problem on new server. Looks like problem is only on one domian with wordpress (but for now I've only 2 domias on this server).
I can't find ProxySet min=0 in user_virtual_host.conf

I'm using PHP 5.4 php-fpm and 5.5 as fastcgi.
Apache + nginx
 
Just add the following to /etc/httpd/conf/extra/httpd-includes.conf:
Code:
ProxyTimeout 600

Restart apache and it should set your proxy timeout to 10 minutes (600 seconds) :)
 
hello,

I know this thread is old...but this is exactly the problem I got...

I have upgrade one or our server to php-fpm+Nginx-Apache+Da 1.47 and one of our user got this error message when he try to access his Piwik accès... Strange thing I have tried to install piwik elsewhere on the server and I didn't got this error...

[Sat Feb 21 07:41:13.557564 2015] [proxy_fcgi:error] [pid 419791:tid 139816209397504] [client 72.12.102.156:48815] AH01067: Failed to read FastCGI header
[Sat Feb 21 07:41:13.557619 2015] [proxy_fcgi:error] [pid 419791:tid 139816209397504] (104)Connection reset by peer: [client 72.12.102.156:48815] AH01075: Error dispatching request to :

I have added the ProxyTimeout to httpd-includes.conf without any success....
 
Last edited:
Bump. Have anyone solved this problem? ProxyTimeout directive doesn't help.
 
You can safely ignore it. It'll be fixed in Apache 2.4.20:
http://httpd.apache.org/dev/dist/CHANGES_2.4.19 said:
*) mod_proxy_fcgi: Suppress HTTP error 503 and message 01075,
"Error dispatching request", when the cause appears to be
due to the client closing the connection.
PR58118. [Tobias Adolph <adolph lrz.de>]
 
@smtalk: Ups, I'm didn't read a title - my problem exist in installation without Nginx (Apache + php-fpm). It's same solution? Wait for Apache 2.4.20? Can I do something in meantime? Because this error break my php scripts...
 
After digging some conclusions - some people find error is related to opcache. I want use opcache so I found other way - increase opcache.max_accelerated_files from default 4000 to about 16000. (I have many php files). For now (2 days after change) this problem disappear. (to be precise - my config is Apache + fpm, without Nginx, i don't know it's solution when use Nginx)
 
Back
Top