nginx + php-fpm + freebsd. the problem

0 like 0 dislike
4 views
Collected from the ports of nginx and php5 with php-fpm

Created a vhost for nginx
server {
server_name site1;
listen 80;
access_log /server/logs/nginx/site1.access.log;
error_log /server/logs/nginx/site1.error.log;

location ~ \\.php$ {
location 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param script_FILENAME /server/www/site1$fastcgi_script_name;
include fastcgi_params;
}

location / {
root /server/www/site1;
}


}


Added to rc.conf
nginx_enable="YES"
php_fpm_enable="YES"


Started with nginx and php-fpm
/usr/local/etc/rc.d/php-fpm start
/usr/local/etc/rc.d/nginx start


The result:
PHP page does not return anything, even if it's just text and there are no scripts. In error.log PDPA php fpmа nothing in server/logs/nginx/site1.error.log anything either.
A 200 response code.

Who can explain?
Thanks in advance.
by | 4 views

2 Answers

0 like 0 dislike
Solution: script_FILENAME, script_FILENAME instead.
For it took to put the spawn-fcgi, to see where the "No input file specified".
And populaity config ))
by
0 like 0 dislike
config php-fpm to see
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
1,123 users