502 Gateway PHP


i try to run a database management system and no matters what i use, i
become 502 Bad Gateway.

the error log say
siefke /var/www/siefke/log $ cat error.log
2014/04/29 00:52:05 [error] 20458#0: *1 recv() failed (104: Connection
reset by peer) while reading response header from upstream, client:, server: silviosiefke_de, request: “POST /adminer.html
HTTP/1.1”, upstream:
“fastcgi://unix:/var/tmp/php/silviosiefke.de.sock:”, host:
“silviosiefke_de”, referrer: “http://silviosiefke_de/adminer.html”

I found strange because all other of php work only the database
want not work. Phpmyadmin,. sqlbuddy, adminer ever 502.

The configuration in nginx of php path:
location ~ .(php|htm|html)$ {
try_files $uri =404;
fastcgi_pass unix:/var/tmp/php/siefke.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/configuration/fastcgi_params;

php config:
listen = /var/tmp/php/siefke.sock
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
user = siefke
group = siefke
pm = ondemand
pm.max_children = 100
pm.process_idle_timeout = 5s
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 35
security.limit_extensions = .php .html
php_flag[display_errors] = off
php_admin_value[error_log] = /var/www/siefke/log/php.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 32M
php_admin_value[open_basedir] = /var/www/siefke:/usr/share/php
php_admin_value[session.save_path]= /var/www/siefke/tmp
php_admin_value[include_path] = /var/www/siefke/inc/php:/usr/share/php

Contao run without problems and the small scripts of php too. Has
an advice what running wrong?

Thank you for help & Nice Day

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
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

__________________Scott LarsonSystems AdministratorWiredrive/LA310 823
8238 ext. 1106310 943 2078 faxwww.wiredrive.com