Привет. Возникла проблема с php53-fpm на centos 6. Nginx и php-fpm из atomic.
Устанавливаю: yum install nginx php-fpm
Редактирую конфиг в /etc/php-fpm/x.conf добавляю
listen = /tmp/www.sock
Создаю файл виртуального хоста в nginx /etc/nginx/conf.d
server {
listen 80;
server_name localhost;
root /var/www/root/;
index index.php index.html index.htm;
access_log /var/www/nginx_access.log;
error_log /var/www/nginx_error.log;
location ~ \.php$ {
fastcgi_pass unix:/tmp/www.sock;
include fastcgi_params;
try_files $uri $uri/ =404;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 60;
fastcgi_read_timeout 60;
}
}
Далее делаю index.php с phpinfo, но выводит пустую страницу. Short_tags уже смотрел.
# tcpdump -nAs 20000 -i lo tcp port 9000 > log
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 20000 bytes
^C20 packets captured
40 packets received by filter
0 packets dropped by kernel
=========================================================
20:41:09.456146 IP 127.0.0.1.52391 > 127.0.0.1.cslistener: Flags [S], seq 642394093, win 32792, options [mss 16396,sackOK,TS val 417694589 ecr 0,nop,wscale 7], length 0
E..<..@.@..)..........#(&J'..........#....@....
...}........
20:41:09.456165 IP 127.0.0.1.cslistener > 127.0.0.1.52391: Flags [S.], seq 471081958, ack 642394094, win 32768, options [mss 16396,sackOK,TS val 417694589 ecr 417694589,nop,wscale 7], length 0
E..<..@.@.<.........#(....#.&J'...........@....
...}...}....
20:41:09.456178 IP 127.0.0.1.52391 > 127.0.0.1.cslistener: Flags [.], ack 1, win 257, options [nop,nop,TS val 417694589 ecr 417694589], length 0
E..4..@.@..0..........#(&J'...#............
...}...}
20:41:09.456211 IP 127.0.0.1.52391 > 127.0.0.1.cslistener: Flags [P.], seq 1:833, ack 1, win 257, options [nop,nop,TS val 417694589 ecr 417694589], length 832
E..t..@.@.............#(&J'...#......i.....
...}...}..........................QUERY_STRING..REQUEST_METHODGET..CONTENT_TYPE..CONTENT_LENGTH.
SCRIPT_NAME/index.php.
REQUEST_URI/index.php.
DOCUMENT_URI/index.php
DOCUMENT_ROOT/var/www/root..SERVER_PROTOCOLHTTP/1.1..GATEWAY_INTERFACECGI/1.1..SERVER_SOFTWAREnginx/1.2.7.
REMOTE_ADDR_lolka_..REMOTE_PORT59754.
SERVER_ADDR5.9.164.54..SERVER_PORT80. SERVER_NAMElocalhost..REDIRECT_STATUS200
HTTP_HOST5.9.164.54.
HTTP_CONNECTIONkeep-alive. HTTP_CACHE_CONTROLmax-age=0.?HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8.fHTTP_USER_AGENTMozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22..HTTP_ACCEPT_ENCODINGgzip,deflate,sdch.#HTTP_ACCEPT_LANGUAGEru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4. HTTP_ACCEPT_CHARSETwindows-1251,utf-8;q=0.7,*;q=0.3.......................
20:41:09.456220 IP 127.0.0.1.cslistener > 127.0.0.1.52391: Flags [.], ack 833, win 269, options [nop,nop,TS val 417694589 ecr 417694589], length 0
E..4..@.@..'........#(....#.&J+....
.......
...}...}
20:41:09.456357 IP 127.0.0.1.cslistener > 127.0.0.1.52391: Flags [P.], seq 1:81, ack 833, win 269, options [nop,nop,TS val 417694589 ecr 417694589], length 80
E.....@.@...........#(....#.&J+....
.x.....
...}...}.....5..X-Powered-By: PHP/5.3.23
Content-type: text/html
...................
20:41:09.456366 IP 127.0.0.1.52391 > 127.0.0.1.cslistener: Flags [.], ack 81, win 257, options [nop,nop,TS val 417694589 ecr 417694589], length 0
E..4..@.@.............#(&J+...$7.....a.....
...}...}
20:41:09.456382 IP 127.0.0.1.cslistener > 127.0.0.1.52391: Flags [F.], seq 81, ack 833, win 269, options [nop,nop,TS val 417694589 ecr 417694589], length 0
E..4..@.@..%........#(....$7&J+....
.T.....
...}...}
20:41:09.456429 IP 127.0.0.1.52391 > 127.0.0.1.cslistener: Flags [F.], seq 833, ack 82, win 257, options [nop,nop,TS val 417694589 ecr 417694589], length 0
E..4..@.@..-..........#(&J+...$8....._.....
...}...}
20:41:09.456537 IP 127.0.0.1.cslistener > 127.0.0.1.52391: Flags [.], ack 834, win 269, options [nop,nop,TS val 417694590 ecr 417694589], length 0
E..4..@.@..$........#(....$8&J+/...
.R.....
...~...}