Upstream prematurely closed FastCGI stdout while reading response header from upstream
<p>I suddently get a 502 Bad gateway error and I don't understand why this error appear. This error appear moreover only for 1 single page!!...</p>

<p>The exact error in my Nginx log is :</p>

<pre><code> Upstream prematurely closed FastCGI stdout while reading response header from upstream [..] upstream: "fastcgi://unix:/var/run/php5-fpm.sock:"
</code></pre>

<p>I tried :</p>

<ul>
<li>service nginx restart : NOTHING CHANGE</li>
<li>service php5-fpm restart : NOTHING CHANGE</li>
<li>to reboot the server : NOTHING CHANGE</li>
<li>even to restart the mysql service : NOTHING CHANGE</li>
</ul>

<p>My /var/log/upstart/php5-fpm.log (only a lot of NOTICES) :</p>

<pre><code>Terminating...
exiting, bye-bye!
fpm is running, pid 9887
ready to handle connections
systemd monitor interval set to 10000ms
</code></pre>

<p>that makes me crazy, any idea ?</p>