Debugging fastcgi parameters

As a quick side thread to “Problems with fastcgi php migration”:

Is there a way to see the content of all the fastcgi_params getting
passed to the fastcgi server? The standard debug log doesn’t give it and
I’m wondering if that info might help.

Hi,

I think it is in the log_format declaration, you can choose what
parameters to put in the log file, see for example:

log_format main '$remote_addr - $remote_user [$time_local] $status ’
'"$request" $body_bytes_sent “$http_referer” ’
‘"$http_user_agent" “http_x_forwarded_for”’;

Good luck in getting 100% of the fastcgi support for your website :slight_smile:

On Fri, Mar 14, 2008 at 10:16:39AM -0400, Ian M. Evans wrote:

As a quick side thread to “Problems with fastcgi php migration”:

Is there a way to see the content of all the fastcgi_params getting
passed to the fastcgi server? The standard debug log doesn’t give it and
I’m wondering if that info might help.

The attached patch does it.

Igor S. wrote:

The attached patch does it.

Thanks for the patch. I applied it and reinstalled nginx. Looking in my
debug log I just see this:

[debug] 3025#0: *100 http init upstream, client timer: 0
[debug] 3025#0: *100 http script copy: “”
[debug] 3025#0: *100 fastcgi param: “*s: *s”
[debug] 3025#0: *100 http script copy: “”
[debug] 3025#0: *100 fastcgi param: “*s: *s”
[debug] 3025#0: *100 http script copy: “”
[debug] 3025#0: *100 fastcgi param: “*s: *s”

So the fastcgi param line is showing now…but no parameters, even on
pages that work.

Is there some other step I’m missing?

Thanks.

On Fri, Mar 14, 2008 at 06:11:59PM -0400, Ian M. Evans wrote:

[debug] 3025#0: *100 http script copy: “”
[debug] 3025#0: *100 fastcgi param: “*s: *s”
[debug] 3025#0: *100 http script copy: “”
[debug] 3025#0: *100 fastcgi param: “*s: *s”

So the fastcgi param line is showing now…but no parameters, even on
pages that work.

Is there some other step I’m missing?

It seems that you use 0.5.x. The patch is for 0.6.x.

On Sat, March 15, 2008 4:32 am, Igor S. wrote:

It seems that you use 0.5.x. The patch is for 0.6.x.

Can 0.6.X be used safely on a production server?

Igor S. wrote:

Yes, I use it on production servers.

I’ve gone ahead and installed the 0.6.X…checked the debug log. Will
continue this back in the “migration” thread…

On Sat, Mar 15, 2008 at 08:29:59AM -0400, Ian E. wrote:

On Sat, March 15, 2008 4:32 am, Igor S. wrote:

It seems that you use 0.5.x. The patch is for 0.6.x.

Can 0.6.X be used safely on a production server?

Yes, I use it on production servers.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs