title: 504 Gateway Timeout after 1 minute in php script
body: <p>I have two server with the same configuration</p>
  
  <p>(Only nginx version and php version are different 
  1st : nginx version: nginx/1.11.4 &amp; PHP 5.3.3
  2nd : nginx version: nginx/1.13.1 &amp; PHP 5.4.16) </p>
  
  <p>configuration:</p>
  
  <pre><code>fastcgi_read_timeout 30000s;
  fastcgi_connect_timeout 18000s;
  fastcgi_send_timeout 60000s;
  #fastcgi_intercept_errors on;
  fastcgi_max_temp_file_size 4000M;
  fastcgi_index  index.php;
  fastcgi_param  SCRIPT_FILENAME   $document_root$fastcgi_script_name;
  include        fastcgi_params;
  fastcgi_keep_conn on;
  proxy_connect_timeout  600s;
  proxy_send_timeout  600s;
  proxy_read_timeout  600s;
  </code></pre>
  
  <p>and i am running a PHP script on both. </p>
  
  <p>My script sometimes takes more than 1 minutes.</p>
  
  <p>In 1st server it is working fine and after taking 3 min it is giving 200 OK response. while in 2nd server after 1 min it is giving 504. </p>