hell0w0rd
Продвинутый новичок
Ставил через homebrew
nginx.conf:
sites/localhost
php-fpm.conf
Ну и главное, вот такая ошибка вылетает в nginx/logs/error.log:
Гуглил и маны и доки читал, не могу разобраться что не так делаю...
nginx.conf:
PHP:
user www;
worker_processes 1;
error_log /usr/local/etc/nginx/logs/error.log;
pid /usr/local/etc/nginx/logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_types text/plain;
include sites/*;
}
PHP:
server {
listen 80;
server_name localhost;
charset utf-8;
index index.php
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
PHP:
[global]
pid = run/php-fpm.pid
error_log = log/php-fpm.log
daemonize = no
events.mechanism = kqueue
[www]
listen = 127.0.0.1:9000
listen.backlog = -1
listen.owner = www
listen.group = www
listen.mode = 0666
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 4
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.process_idle_timeout = 10s;
pm.max_requests = 500
pm.status_path = /fpms
access.log = log/$pool.access.log
access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%"
PHP:
2013/04/29 02:31:05 [error] 36914#0: *5 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"