Welcome! Log In Create A New Profile

Advanced

Re: OpenX error

July 19, 2009 05:27AM
On Sun, Jul 19, 2009 at 06:08:38AM +0000, Glen Lumanau wrote:

> Any fix for this please?

I have looked in php-5.0.5 sources and have found that PHP_SELF is set
to "SG(request_info).request_uri" value. The .request_uri set to

if (cgi.fix_pathinfo)
SCRIPT_NAME

} else {
if (PATH_INFO exists)
PATH_INFO

} else {
SCRIPT_NAME
}
}


And it seems that SCRIPT_NAME should be without $document_root.

> Best Regards,
>
> Glen Lumanau
>
>
> -----Original Message-----
> From: "Glen Lumanau" <glen@lumanau.web.id>
>
> Date: Sun, 19 Jul 2009 02:45:26
> To: <nginx@sysoev.ru>
> Subject: RE: OpenX error
>
>
> kurenai:/etc/nginx# cat fastcgi_params
>
> fastcgi_param QUERY_STRING $query_string;
> fastcgi_param REQUEST_METHOD $request_method;
> fastcgi_param CONTENT_TYPE $content_type;
> fastcgi_param CONTENT_LENGTH $content_length;
>
> fastcgi_param SCRIPT_NAME $document_root$fastcgi_script_name;
>
> But no change :(
>
>
> -----Original Message-----
> From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of Michael Shadle
> Sent: 19 Juli 2009 2:28
> To: nginx@sysoev.ru
> Subject: Re: OpenX error
>
> oops, misread SCRIPT_NAME as SCRIPT_FILENAME
>
> just for giggles try this instead
>
> location ~ \.php$ {
>
>
> On Sat, Jul 18, 2009 at 12:19 PM, Glen Lumanau<glen@lumanau.web.id> wrote:
> > It's already set
> >
> > Here's the config
> > location ~ .php$ {
> > fastcgi_pass 127.0.0.1:9000;
> > fastcgi_index index.php;
> > fastcgi_buffer_size 128k;
> > fastcgi_buffers 4 256k;
> > fastcgi_param SCRIPT_FILENAME
> > $document_root$fastcgi_script_name;
> > include /etc/nginx/fastcgi_params;
> >
> >
> > Regards,
> >
> > Glen Lumanau
> >
> > -----Original Message-----
> > From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of
> > Michael Shadle
> > Sent: 19 Juli 2009 1:31
> > To: nginx@sysoev.ru
> > Cc: <nginx@sysoev.ru>
> > Subject: Re: OpenX error
> >
> > Change the script_filename one to
> >
> > $document_root$fastcgi_script_name
> >
> >
> >
> > Sent from my iPhone
> >
> > On Jul 18, 2009, at 9:33 AM, "Glen Lumanau" <glen@lumanau.web.id> wrote:
> >
> >> Here's my default fastcgi_params
> >>
> >> fastcgi_param QUERY_STRING $query_string;
> >> fastcgi_param REQUEST_METHOD $request_method;
> >> fastcgi_param CONTENT_TYPE $content_type;
> >> fastcgi_param CONTENT_LENGTH $content_length;
> >>
> >> fastcgi_param SCRIPT_NAME $fastcgi_script_name;
> >> fastcgi_param REQUEST_URI $request_uri;
> >> fastcgi_param DOCUMENT_URI $document_uri;
> >> fastcgi_param DOCUMENT_ROOT $document_root;
> >> fastcgi_param SERVER_PROTOCOL $server_protocol;
> >>
> >> fastcgi_param GATEWAY_INTERFACE CGI/1.1;
> >> fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
> >>
> >> fastcgi_param REMOTE_ADDR $remote_addr;
> >> fastcgi_param REMOTE_PORT $remote_port;
> >> fastcgi_param SERVER_ADDR $server_addr;
> >> fastcgi_param SERVER_PORT $server_port;
> >> fastcgi_param SERVER_NAME $server_name;
> >>
> >> # PHP only, required if PHP was built with --enable-force-cgi-redirect
> >> fastcgi_param REDIRECT_STATUS 200;
> >>
> >> but it doesn't work at all
> >>
> >> -----Original Message-----
> >> From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf
> >> Of Edho P Arief
> >> Sent: 18 Juli 2009 23:25
> >> To: nginx@sysoev.ru
> >> Subject: Re: OpenX error
> >>
> >> On Sat, Jul 18, 2009 at 11:10 PM, Glen Lumanau<glen@lumanau.web.id>
> >> wrote:
> >>> Hi there,
> >>>
> >>>
> >>>
> >>> I have the same error like
> >>>
> > http://forum.openx.org/index.php?s=235b643ebd3a9ef26ef16754b21b90f1&showtopi
> > c=503416093
> >>>
> >>>
> >>>
> >>> May I know what value do I have to enter to fastcgi_params? Because
> >>> i have
> >>> no clue
> >>>
> >>>
> >>>
> >>> Thank fs before
> >>
> >> The default fastcgi_params should be fine.
> >>
> >> --
> >> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
> >>
> >>
> >
> >
> >
>

--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

OpenX error

Glen Lumanau July 18, 2009 12:10PM

Re: OpenX error

edogawaconan July 18, 2009 12:25PM

RE: OpenX error

Glen Lumanau July 18, 2009 12:33PM

Re: OpenX error

mike July 18, 2009 02:30PM

RE: OpenX error

Glen Lumanau July 18, 2009 03:19PM

Re: OpenX error

mike July 18, 2009 03:27PM

RE: OpenX error

Glen Lumanau July 18, 2009 03:45PM

Re: OpenX error

Glen Lumanau July 19, 2009 02:08AM

Re: OpenX error

edogawaconan July 19, 2009 02:36AM

Re: OpenX error

Igor Sysoev July 19, 2009 05:27AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
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