FirePHP on Nginx zend_db_profiler_firebug Bad Gateway

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;

}

One Comment to “FirePHP on Nginx zend_db_profiler_firebug Bad Gateway”

  1. upstream sent too big header while reading response header from upstream | How to - si altele Says:

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

Leave a comment

or Subscribe to this comment feed via RSS