Не запускается PhpMyAdmin

termit-200 nginx-forum на nginx.us
Пн Авг 10 07:55:49 UTC 2015


Здравствуйте !
Пытаюсь поднять веб сервер Nginx на Freebsd 9.3
Последовательно установлены Mysql5.5, Nginx, PHP 5.4, PhpMyAdmin
По факту при запуске в браузере корректно отображается только файл с версией
PHP   ( <? phpinfo(); ?>)
При попытке открыть страничку с PhpMyAdmin отображается белое окно
браузера.

В логах следующие ошибки: 
upstream prematurely closed connection while reading response header from
upstream, client: 192.168.14.207, server: pma.site1.ru, request: "GET
/phpmyadmin.css.php?nocache=4316762147ltr HTTP/1.1", $
2015/08/10 09:07:07 [error] 614#0: *60 upstream prematurely closed
connection while reading response header from upstream, client:
192.168.14.207, server: pma.site1.ru, request: "GET
/js/whitelist.php?lang=ru&db=&token=4436134334e3a35aa$
2015/08/10 09:07:07 [error] 614#0: *64 upstream prematurely closed
connection while reading response header from upstream, client:
192.168.14.207, server: pma.site1.ru, request: "GET
/js/get_scripts.js.php?scripts%5B%5D=jquery/jquery-1.$
2015/08/10 09:07:07 [error] 614#0: *74 upstream prematurely closed
connection while reading response header from upstream, client:
192.168.14.207, server: pma.site1.ru, request: "GET
/js/messages.php?lang=ru&db=&token=4436134334e3a35aa4$



Конфиг Nginx:

user www;
worker_processes 1;

pid /var/run/nginx.pid;
error_log /var/log/nginx-error.log warn;

events {
worker_connections 1024;
use kqueue;
}

http {
include mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
server_tokens off;

fastcgi_intercept_errors on;
client_max_body_size 50m;

server {
listen 80;
server_name www.site1.ru;
rewrite ^ http://site1.ru$request_uri? permanent;
}

# wordpress
server {
listen 80;
server_name site1.ru;
root /web/sites/site1.ru/www/;
index index.php index.html index.htm;
access_log /web/sites/site1.ru/log/access.log main;
error_log /web/sites/site1.ru/log/error.log;

location / {
#try_files $uri $uri/ /index.php?q=$uri&$args;
 try_files $uri $uri/ /index.php =404;
}
location ~* ^.+.(js|css|png|jpg|jpeg|gif|ico)$ {
access_log off;
expires max;
}
location ~ \.php$ {
fastcgi_pass   unix:/tmp/php-fpm.sock;
fastcgi_index index.php;

fastcgi_param DOCUMENT_ROOT /web/sites/site1.ru/www/;
fastcgi_param SCRIPT_FILENAME /web/sites/site1.ru/www$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED /web/sites/site1.ru/www$fastcgi_script_name;

include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
}
}
}



Конфиг php-fpm:

[global]
pid = run/php-fpm.pid

[www]
user = www
group = www

listen = /tmp/php-fpm.sock
listen.owner = www
listen.group = www
listen.mode = 0660

pm = dynamic
pm.max_children = 10
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3


Файл fastcgi_params

fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;

fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;
fastcgi_param  REQUEST_SCHEME     $scheme;
fastcgi_param  HTTPS              $https if_not_empty;

fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;

fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param  REDIRECT_STATUS    200;


Настраивал по этой статье:
http://zeroxzed.ru/freebsd-nastroyka-php-fpm-i-nginx/

Сломал уже всю голову - не могу найти проблему. 
Прошу помощи от гуру.

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,260893,260893#msg-260893



Подробная информация о списке рассылки nginx-ru