nginx + php-fpm + freebsd. the problem

Collected from the ports of nginx and php5 with php-fpm

Created a vhost for nginx
server {<br> server_name site1;<br> listen 80;<br> access_log /server/logs/nginx/site1.access.log;<br> error_log /server/logs/nginx/site1.error.log;<br> <br / > location ~ \.php$ {<br> location;<br> fastcgi_index index.php;<br> fastcgi_param script_FILENAME /server/www/site1$fastcgi_script_name;<br> include fastcgi_params;<br> }<br> <br / > location / {<br> root /server/www/site1;<br> }<br> <br / > <br / > }<br>

Added to rc.conf
nginx_enable="YES"<br> php_fpm_enable="YES"<br>

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

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.
October 14th 19 at 12:04
2 answers
October 14th 19 at 12:06
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 ))
in General the right strtoupper(script_FILENAME). Habr converts S C R I P T in script.
The error in the article where you copy-paste the config...
And the main thing copy-paste in soybean article with Habra, where the error... - Lyda_Parker62 commented on October 14th 19 at 12:09
But what is the article an error? - vern_Ankunding56 commented on October 14th 19 at 12:12
A year later, it will be quite difficult to find... - Lyda_Parker62 commented on October 14th 19 at 12:15
October 14th 19 at 12:08
config php-fpm to see
[global]<br> pid = /var/run/<br> <br / > error_log = /server/logs/php-fpm.log<br> log_level = notice<br> <br / > [www]<br> listen =<br> listen.allowed_clients =<br> <br / > user = www<br> group = www<br> <br / > pm = dynamic<br> pm.max_children = 50<br> pm.start_servers = 20<br> pm.min_spare_servers = 5<br> pm.max_spare_servers = 35<br> <br / > chdir = /server/www<br> <br / > php_admin_value[sendmail_path] = /usr/sbin/sendmail -t-i-f<br / > php_flag[display_errors] = on<br> php_admin_value[error_log] = /server/logs/fpm-php.www.log<br> php_admin_flag[log_errors] = on<br> php_admin_value[memory_limit] = 32M<br> - Lyda_Parker62 commented on October 14th 19 at 12:11

Find more questions by tags PHPNginxPHP-FPMFreeBSD