[!! SPAM] Re: symfony php configuration

Igor Sysoev is at rambler-co.ru
Fri May 22 23:52:26 MSD 2009


On Fri, May 22, 2009 at 09:19:39PM +0200, Mikel Arteta wrote:

> shaktale wrote:
> >>location ~ ^(.+\.php)(.*)$ {
> >>fastcgi_split_path_info ^(.+\.php)(.*)$;
> >>fastcgi_param SCRIPT_FILENAME /path/to/php$fastcgi_script_name;
> >>fastcgi_param PATH_INFO $fastcgi_path_info;
> > 
> > Works like a charm, but I need to include:
> > 
> > 
> > fastcgi_param  SCRIPT_NAME      $fastcgi_script_name;
> > 
> > 
> > 
> > Thank you Igor.
> Bonjour ^^
> 
> Can you give your configuration.
> 
> ------------------------------------
> 
>     server {
>         listen       80;
>         server_name  dev.xxxx.com www.dev.xxxxx.com;
>         access_log  /var/log/nginx/dev.xxxxxx_access.log combined;
>         root /data/www/dev/web;
>         index  index.html index.htm index.php;
> 
> location / {
>     try_files $uri /index.php;
>     expires max;}
> 
> location ~ \.php$ {
>    fastcgi_pass   unix:/dev/shm/php.socket;}
> 
> location ~ ^(.+\.php)(.*)$ {
>     fastcgi_split_path_info         ^(.+\.php)(.*)$;
>     fastcgi_param  PATH_INFO        $fastcgi_path_info;
>     fastcgi_pass unix:/dev/shm/php2.socket;}
> 
> location /sf/ {
>      root /usr/share/php/data/symfony/web;}
> 
> location ~ /\.ht {
>             deny  all;}}
> 
> ------------------------------------
> 
> It does not work with these parameters.
> 
> http://dev.xxxxxx.com/admin.php/matche => No input file specified.

You did not set

fastcgi_param  SCRIPT_FILENAME  /path/to/php$fastcgi_script_name;

and some other probably needed parameters inside
 location ~ \.php$ {
and
 location ~ ^(.+\.php)(.*)$ {


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list