How to , and other stuff about linux, photo, php … A linux, photography blog. To remember some linux situation, and fix them quickly.

December 12, 2011

FirePHP on Nginx zend_db_profiler_firebug Bad Gateway

Filed under: Linux — admin @ 2:00 pm

Well because we have switch from apache to nginx we encountered a new problem .
When we have enable zend_db_profiler_firebug we got “bad gateway” error.

One simple fix for this is to append bellow line into your virtual.conf of ngix.
# set these two: zend_db_profiler_firebug
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;

It should look something like this.

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param APPLICATION_ENV production;
# set these two: zend_db_profiler_firebug
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;

}

1 Comment »

  1. […] the post http://matrafox.info/firephp-on-nginx-zend_db_profiler_firebug-bad-gateway.html  i […]

    Pingback by upstream sent too big header while reading response header from upstream | How to - si altele — December 14, 2011 @ 11:50 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress