Debugging and ubuntu
Ian Evans
ianevans at digitalhit.com
Fri Nov 22 09:44:36 UTC 2013
On 22/11/2013 4:14 AM, Bob S. wrote:
> We run Ubuntu on many servers and have come to prefer the binaries
> offered by nginx.org <http://nginx.org> rather than the Ubuntu ppa's
> One advantage is that upgrades go smoother because the nginx upgrades
> don't ask unnecessary questions.
> On Fri, Nov 22, 2013 at 4:06 AM, Francis Daly <francis at daoine.org
> <mailto:francis at daoine.org>> wrote:
> On Fri, Nov 22, 2013 at 02:01:52AM -0500, Ian Evans wrote:
> Hi there,
> > Does the package version not include debug (don't see it with -V)
> and if
> > so how can I get it through the package system?
>
> There's more than one nginx package in Ubuntu (raring).
Well I uninstalled and changed to the ppa version, which comes with debug.
Scratching my head on this one. I created a file that has just the
phpinfo(); and looking at the debug log I can see that it appears to hit
the fastcgi (it returns an x-powered-by header) but returns a blank page:
2013/11/22 04:23:51 [debug] 5453#0: *10 http upstream request:
"/carsontest.php?"
2013/11/22 04:23:51 [debug] 5453#0: *10 http upstream process header
2013/11/22 04:23:51 [debug] 5453#0: *10 malloc: 0000000001BB71D0:4096
2013/11/22 04:23:51 [debug] 5453#0: *10 recv: fd:8 88 of 4096
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi record byte: 01
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi record byte: 06
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi record byte: 00
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi record byte: 01
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi record byte: 00
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi record byte: 3F
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi record byte: 01
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi record byte: 00
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi record length: 63
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi parser: 0
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi header:
"X-Powered-By: PHP/5.4.9-4ubuntu2.3"
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi parser: 0
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi header:
"Content-type: text/html"
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi parser: 1
2013/11/22 04:23:51 [debug] 5453#0: *10 http fastcgi header done
2013/11/22 04:23:51 [debug] 5453#0: *10 xslt filter header
2013/11/22 04:23:51 [debug] 5453#0: *10 posix_memalign:
0000000001BB81E0:4096 @16
2013/11/22 04:23:51 [debug] 5453#0: *10 HTTP/1.1 200 OK
Server: nginx/1.4.3
Date: Fri, 22 Nov 2013 09:23:51 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.4.9-4ubuntu2.3
Content-Encoding: gzip
Again...a head scratcher since I've been running nginx and php-fpm for
years. Perhaps it's worked so well that my memory is foggy from the last
time I did it.
More information about the nginx
mailing list