nginx buffer errors during cacti install

nginx was working fine until I installed cacti.  I kept getting 502 errors and this message:

 2010/12/09 19:03:39 [error] 20002#0: *283 upstream sent too big header while reading response header from upstream, client: 192.34.56.2, server: _, request: "GET /cacti/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.23.2.2" 

The solution is to increase the buffers from their defaults which are listed here: http://wiki.nginx.org/HttpFcgiModule I tried various values and the minimum values that would work with cacti were the following in your /etc/nginx/nginx.conf:

 location ~ \.php$ { fastcgi_buffers 8 16k; fastcgi_buffer_size 32k; }