Skip to main content
9 events
when toggle format what by license comment
Dec 7, 2018 at 21:24 comment added Sakura Kinomoto I've changed the answer for try to explain in more detail the question itself.
Dec 7, 2018 at 21:23 history edited Sakura Kinomoto CC BY-SA 4.0
Changed response for covering the generated conversation around them.
Dec 7, 2018 at 21:06 comment added Sakura Kinomoto Its obvious, in this sentence I'm talking about using apache + mod_php, or changing the sentence, not using a proxy service to process PHP code and execute it on the web server itself. Obviously, if your apache are behind a lighthttpd, nginx, haproxy, the problen can appears from one of them.
Dec 7, 2018 at 20:59 comment added MrWhite I understand. But your last sentence would seem to be incomplete in that case, as it implies that simply using Apache-mod-php (regardless of whether there is a front-end proxy or not) would avoid this error. I assume what you mean is... "if you only have an Apache with Apache-mod-php and no front-end proxy (Nginx in this case) then you will never receive this error"?
Dec 6, 2018 at 23:50 comment added Sakura Kinomoto Obviously, but that's not the question itself. In this case, 504 can be given by nginx, but not Apache. The question on this case, are who if the 504 error code are generated by the proxy, the execution triggered by the proxy call are not stopped. On the case of a gateway or proxy, there's at least two timers in play. The timeout of proxy communication (on nginx for example) and the timeout on the php process.
Dec 6, 2018 at 23:38 comment added MrWhite But can you not have an Nginx reverse proxy in front of Apache mod-php?
Dec 6, 2018 at 23:21 comment added Sakura Kinomoto When you use a Apache server with mod-php, the execution has done by Apache itself. Because this, you cannot get a 504 timeout, because there's not any gateway on the process. If you use php-cgi or php-fpm, the Apache /nginx / some other web server are acting as a proxy or gateway to the real processing engine. Then, 504 error appears when this gateway didn't receive a response in a configured amount of time.
Dec 6, 2018 at 22:52 comment added MrWhite "if you have an Apache with Apache-mod-php you will never receive this error" - can you explain this last sentence?
Dec 5, 2018 at 2:53 history answered Sakura Kinomoto CC BY-SA 4.0