ubuntu upgrade from hardy to intrepid. nginx fails.

Last night I upgraded ubuntu server (hardy) to intrepid. Everything went except nginx failed to serve php pages. Basically all requests to my site got 502 BAD GATEWAY error. So I thought maybe i had to upgrade nginx to a newer version that might be compatible with intrepid.

But later I realized that I downloaded nginx source, compiled and installed it manually. So after getting nginx via aptitude was a big mistake.

Continue reading