PHP Not Working

Ian Hobson ian at ianhobson.co.uk
Sat Apr 16 23:32:24 MSD 2011


On 16/04/2011 16:59, Cain wrote:
> Hey I am new ;)
>
> Anyway I seem to be having a problem with PHP files.
>
> I get a 404 error on them on any other browser and a broken page on
> Chrome.
> I found a small log and here is the details from it
>
> 2011/04/16 15:51:27 [error] 22810#0: *1 upstream sent unsupported
> FastCGI protocol version: 60 while reading response header from
> upstream, client: 81.99.173.32, server: thefoool.co.uk, request: "GET
> /cain.php HTTP/1.1", upstream: "fastcgi://81.99.173.32:80", host:
> "thefoool.co.uk"
>
> Can you please tell me what's wrong with it? :)
>
Hi Cain,

 From the error message it appears that you may be passing the PHP to 
port 80, (where
it is being handled by nginx, which rejects it), and not the port you 
have started the fastcgi
servers on.

This blog post explains the wayt o set it up nicely.

http://tomasz.sterna.tv/2009/04/php-fastcgi-with-nginx-on-ubuntu/

Regards

Ian





More information about the nginx mailing list