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:
<?php
phpinfo();
?>
Let us know if this works.
--
Unai Rodriguez
CTO & Cofounder
LeanWired LLP
Singapore 168977
www.leanservers.com
unai@leanservers.com
On Thursday, January 5, 2012 at 7:51 AM, DeneB wrote:
> I have just recently set-up a new LEMP in Ubuntu 11.10 (64-bit) and
> running NGinX ver 1.0.5. the server is running fine but I cannot seem to
> get any forms to work. On my old server (windows) the forms worked fine,
> but now I get the following error "502 Bad Gateway".
>
> NGinX was installed with apt-get install, it is not a version that I
> compiled myself. Also I am running PHP5-Fastcgi.
>
> I have tried setting the forms to work in two different ways, one to
> write to a text file and also to write to MySQL database.....but with no
> luck.
>
> Any ideas on how to get the forms working again??
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,220816,220816#msg-220816
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org (mailto:nginx@nginx.org)
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx