Welcome! Log In Create A New Profile

Advanced

Re: [!! SPAM] Re: symfony php configuration

May 22, 2009 03:52PM
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/
Subject Author Posted

symfony php configuration

shaktale April 29, 2009 11:21AM

Re: symfony php configuration

Joe Bofh April 30, 2009 06:58PM

Re: symfony php configuration

shaktale May 05, 2009 04:29AM

Re: symfony php configuration

shaktale May 14, 2009 07:52AM

Re: symfony php configuration

Igor Sysoev May 14, 2009 08:02AM

Re: symfony php configuration

shaktale May 18, 2009 04:52AM

WEB Service based on Nginx

Zheng, Wenxing (NSN - CN/Beijing) May 20, 2009 02:26AM

Re: WEB Service based on Nginx

deltay May 20, 2009 02:36AM

Re: symfony php configuration

Mikel Arteta May 22, 2009 03:19PM

Re: [!! SPAM] Re: symfony php configuration

Igor Sysoev May 22, 2009 03:52PM

Re: Re: symfony php configuration

Mikel Arteta May 23, 2009 07:12AM

Re: Re: symfony php configuration

Igor Sysoev May 23, 2009 11:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready