# PHP Not Working

**URL:** <https://www.ruby-forum.com/t/php-not-working/205832>\
**Category:** NGINX\
**Created:** [April 16, 2011, 5:59pm UTC](https://www.ruby-forum.com/t/php-not-working/205832 "2011-04-16T17:59:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [April 16, 2011, 5:59pm UTC](https://www.ruby-forum.com/t/php-not-working/205832/1 "2011-04-16T17:59:34Z")

</div>

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](http://thefoool.co.uk), request: “GET  
/cain.php HTTP/1.1”, upstream: “fastcgi://81.99.173.32:80”, host:  
“[thefoool.co.uk](http://thefoool.co.uk)”

Can you please tell me what’s wrong with it? 🙂

Posted at Nginx Forum:

> **[PHP Not Working](https://forum.nginx.org/read.php?2,191718,191718#msg-191718)**
>
> 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 se

---

<div class="post-metadata">

**Author:** ![Cain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85e7bf/32.png) [@Cain](https://www.ruby-forum.com/u/Cain)\
**Post date:** [April 16, 2011, 9:33pm UTC](https://www.ruby-forum.com/t/php-not-working/205832/2 "2011-04-16T21:33:06Z")

</div>

On 16/04/2011 16:59, Cain wrote:

> upstream, client: 81.99.173.32, server: [thefoool.co.uk](http://thefoool.co.uk), request: “GET  
> /cain.php HTTP/1.1”, upstream: “fastcgi://81.99.173.32:80”, host:  
> “[thefoool.co.uk](http://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/](http://tomasz.sterna.tv/2009/04/php-fastcgi-with-nginx-on-ubuntu/)

Regards

Ian
