Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Sep 2007 01:27:31 +0200
From:      Patrick Lamaiziere <patfbsds+questions@davenulle.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Nginx PHP5 Fast-CGI FreeBSD CURRENT
Message-ID:  <20070909012731.55dc6b77@roxette>
In-Reply-To: <1189291130.8850.8.camel@dingo-laptop>
References:  <1189291130.8850.8.camel@dingo-laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Sun, 09 Sep 2007 01:38:50 +0300,
OutBackDingo <outbackdingo@gmail.com> a écrit :

> # .php5 sent to php5
>     location ~ .*\.php5$ {

I'm not sure for this expression, i use for .php
     location ~ \.php$ {

>     include /usr/local/etc/nginx/fastcgi_params;
>     fastcgi_pass  127.0.0.1:10005;
>     fastcgi_index index.php;
>     fastcgi_param SCRIPT_FILENAME /$fastcgi_script_name;

You should append the root location of the server:
fastcgi_param
SCRIPT_FILENAME /usr/local/www/nginx$fastcgi_script_name;

> /usr/local/sbin/spawn-fcgi -f /usr/local/bin/php-cgi -a 127.0.0.1 -p
> 9000 -u www

The port should be 10005 for « fastcgi_pass  127.0.0.1:10005; »

Regards.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070909012731.55dc6b77>