Answer the question
In order to leave comments, you need to log in
nginx + php-fpm + freebsd. problem?
Compiled from nginx and php5 ports 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/>
fastcgi_pass 127.0.0.1:9000;<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/>
nginx_enable="YES"<br/>
php_fpm_enable="YES"<br/>
/usr/local/etc/rc.d/php-fpm start<br/>
/usr/local/etc/rc.d/nginx start<br/>
Answer the question
In order to leave comments, you need to log in
Solution: script_FILENAME instead of script_FILENAME.
To do this, it was necessary to install spawn-fcgi, see “No input file specified” there.
And steam the config))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question