<div dir="ltr">     I'm not personally a fan of telling nginx to glob all .html files for PHP processing, but maybe that's just me and unrelated. If other PHP apps are working I'd dig into the logging for that. Generally when I run into situations like this it has nothing to do with nginx and instead is something within the PHP config. Exceeding memory is a frequent culprit, followed by the app not liking the values sent to it within SCRIPT_FILENAME or PATH_INFO.</div>
<div class="gmail_extra"><br clear="all"><div><div dir="ltr"><b style="color:rgb(25,25,25)"><div style="color:rgb(0,0,0);font-weight:normal"><b style="color:rgb(25,25,25)"><font face="Lucida Grande" size="1"><div style="color:rgb(0,0,0);font-weight:normal">
<span style="color:rgb(25,25,25);font-weight:bold">__________________</span></div><div style="color:rgb(0,0,0);font-weight:normal"><div style="margin:0px"><font color="#191919"><b><br></b></font></div><div style="margin:0px">
<font color="#191919"><b>Scott Larson</b></font></div><div style="margin:0px"><div style="margin:0px"><font color="#007EFD"><span style="color:rgb(0,0,0)"><div style="margin:0px"><font color="#191919"><b><div style="margin:0px;font-weight:normal;color:rgb(120,120,120)">
<span style="color:rgb(25,25,25)"><b><div style="margin:0px;font-weight:normal;color:rgb(120,120,120)">Systems Administrator</div></b></span></div><div style="margin:0px;font-weight:normal;min-height:8px"><br></div><div style="margin:0px;font-weight:normal">
<b>Wiredrive/LA</b></div><div style="margin:0px;font-weight:normal"><a value="+13108238238" style="color:rgb(17,85,204)">310 823 8238 ext. 1106</a></div><div style="margin:0px;font-weight:normal"><a value="+13109432078" style="color:rgb(17,85,204)">310 943 2078</a> fax</div>
</b></font></div><div style="margin:0px"><font color="#2498FC"><a href="http://www.wiredrive.com/" style="color:rgb(17,85,204)" target="_blank">www.wiredrive.com</a></font></div><div style="margin:0px"><font color="#2498FC"><span style="color:rgb(0,0,0)"><div style="margin:0px;color:rgb(120,120,120)">
<div style="margin:0px"><a href="http://www.twitter.com/wiredrive" style="color:rgb(17,85,204)" target="_blank"><font color="#2498FC">www.twitter.com/wiredrive</font></a></div><div style="margin:0px"><font color="#2498FC"><a href="http://www.wiredrive.com/facebook" style="color:rgb(17,85,204)" target="_blank">www.facebook.com/wiredrive</a></font></div>
</div></span></font></div></span></font></div></div></div></font></b></div></b></div></div>
<br><br><div class="gmail_quote">On Mon, Apr 28, 2014 at 3:58 PM, Silvio Siefke <span dir="ltr"><<a href="mailto:siefke_listen@web.de" target="_blank">siefke_listen@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
i try to run a database management system and no matters what i use, i<br>
become 502 Bad Gateway.<br>
<br>
the error log say<br>
siefke /var/www/siefke/log $  cat error.log<br>
2014/04/29 00:52:05 [error] 20458#0: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 10.42.0.20, server: silviosiefke_de, request: "POST /adminer.html HTTP/1.1", upstream: "fastcgi://unix:/var/tmp/php/silviosiefke.de.sock:", host: "silviosiefke_de", referrer: "<a href="http://silviosiefke_de/adminer.html" target="_blank">http://silviosiefke_de/adminer.html</a>"<br>

<br>
I found strange because all other of php work only the database managements<br>
want not work. Phpmyadmin,. sqlbuddy, adminer ever 502.<br>
<br>
The configuration in nginx of php path:<br>
location ~ \.(php|htm|html)$ {<br>
try_files $uri =404;<br>
fastcgi_pass unix:/var/tmp/php/siefke.sock;<br>
fastcgi_index index.php;<br>
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
include /etc/nginx/configuration/fastcgi_params;<br>
}<br>
<br>
php config:<br>
[siefke]<br>
 listen = /var/tmp/php/siefke.sock<br>
 listen.owner = nginx<br>
 listen.group = nginx<br>
 listen.mode = 0660<br>
 user = siefke<br>
 group = siefke<br>
 pm = ondemand<br>
 pm.max_children = 100<br>
 pm.process_idle_timeout = 5s<br>
 pm.start_servers = 1<br>
 pm.min_spare_servers = 1<br>
 pm.max_spare_servers = 35<br>
 security.limit_extensions = .php .html<br>
 php_flag[display_errors] = off<br>
 php_admin_value[error_log] = /var/www/siefke/log/php.log<br>
 php_admin_flag[log_errors] = on<br>
 php_admin_value[memory_limit] = 32M<br>
 php_admin_value[open_basedir] = /var/www/siefke:/usr/share/php<br>
 php_admin_value[session.save_path]= /var/www/siefke/tmp<br>
 php_admin_value[include_path] = /var/www/siefke/inc/php:/usr/share/php<br>
<br>
<br>
Contao run without problems and the small scripts of php too. Has someone<br>
an advice what running wrong?<br>
<br>
Thank you for help & Nice Day<br>
Silvio<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div>