P
P
p01nt2010-09-19 15:31:46
PHP
p01nt, 2010-09-19 15:31:46

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/>

Added to rc.conf
nginx_enable=&quot;YES&quot;<br/>
php_fpm_enable=&quot;YES&quot;<br/>

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

Result:
PHP pages don't return anything, even if it's just text and there are no scripts. There is nothing in the error.log of nginx and php-fpma, nothing in server/logs/nginx/site1.error.log either.
Response code 200.
Who can clarify?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
p01nt, 2010-09-19
@p01nt

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))

D
Dmitry Sergeev, 2010-09-19
@JetMaster

php-fpm config would see

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question