<div style="font-family: Helvetica; font-size: 13px; ">Do you get the error "502 bad gateway" with any PHP page? It seems PHP might not be working at all. I would recommend creating a very simple PHP page and testing if it works with the following content for example:<div><br></div><div><?php</div><div><br></div><div>phpinfo();</div><div><br></div><div>?></div><div><br></div><div>Let us know if this works.</div></div>
<div><div><br></div><div><div>-- </div><div><div>Unai Rodriguez</div><div>CTO & Cofounder</div><div>LeanWired LLP</div><div>Singapore 168977</div><div>www.leanservers.com</div><div>unai@leanservers.com</div></div></div></div>
<p style="color: #A0A0A8;">On Thursday, January 5, 2012 at 7:51 AM, DeneB wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>I have just recently set-up a new LEMP in Ubuntu 11.10 (64-bit) and</div><div>running NGinX ver 1.0.5. the server is running fine but I cannot seem to</div><div>get any forms to work. On my old server (windows) the forms worked fine,</div><div>but now I get the following error "502 Bad Gateway".</div><div><br></div><div>NGinX was installed with apt-get install, it is not a version that I</div><div>compiled myself. Also I am running PHP5-Fastcgi.</div><div><br></div><div>I have tried setting the forms to work in two different ways, one to</div><div>write to a text file and also to write to MySQL database.....but with no</div><div>luck.</div><div><br></div><div>Any ideas on how to get the forms working again??</div><div><br></div><div>Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,220816,220816#msg-220816">http://forum.nginx.org/read.php?2,220816,220816#msg-220816</a></div><div><br></div><div>_______________________________________________</div><div>nginx mailing list</div><div><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></div><div><a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>