504 Gateway Time-out
recv() failed (104: Connection reset by peer) while reading response header from upstream, client:
grep -r request_terminate_timeout /etc/php*
Make sure there are no request_terminate_timeoutset in your PHP settings
504 Gateway Time-out
recv() failed (104: Connection reset by peer) while reading response header from upstream, client:
grep -r request_terminate_timeout /etc/php*
Make sure there are no request_terminate_timeoutset in your PHP settings
AH01067: Failed to read FastCGI header timeout
(104)Connection reset by peer: [client xx.xx.xx.xx:37642] AH01075: Error dispatching request to
Check if request_terminate_timeout is not set to small value like a few seconds
In case of php-fpm try: fastcgi_param HTTPS on;
Unknown Reason The server encountered an internal error or misconfiguration and was unable to complete your request
You should try use: ProxyErrorOverride off
If you had something like this:
ProxyPassMatch “^/(.*\.php(/.*)?)$” “unix:/var/run/php-fpm/php.sock|fcgi://localhost/some/path” enablereuse=on
Advice is to change to SetHandler:
<Directory "/some/path"> <FilesMatch \.php$> ProxyErrorOverride on SetHandler "proxy:unix:/path/to/sock/php.sock|fcgi://localhost" </FilesMatch> </Directory>