# Debugging and ubuntu

**URL:** <https://www.ruby-forum.com/t/debugging-and-ubuntu/237639>\
**Category:** NGINX\
**Created:** [November 22, 2013, 8:02am UTC](https://www.ruby-forum.com/t/debugging-and-ubuntu/237639 "2013-11-22T08:02:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [November 22, 2013, 8:02am UTC](https://www.ruby-forum.com/t/debugging-and-ubuntu/237639/1 "2013-11-22T08:02:32Z")

</div>

Been running nginx for _years_ on centos and am in the process of  
migrating to an Ubuntu (raring) server.

I’ve always compiled from source before but figured I’d use the Ubuntu  
apt-get install.

For whatever reason, testing is not working at all (I can serve static  
but not php) and I set the error\_log level to debug, but I’m still  
getting notice level messages.

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?

My previous CentOS migration was smooth, so I don’t know why this one  
has me tearing my hair out.

---

<div class="post-metadata">

**Author:** ![peterpiper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3e96dc/32.png) [@peterpiper](https://www.ruby-forum.com/u/peterpiper)\
**Post date:** [November 22, 2013, 10:06am UTC](https://www.ruby-forum.com/t/debugging-and-ubuntu/237639/2 "2013-11-22T10:06:59Z")

</div>

On Fri, Nov 22, 2013 at 02:01:52AM -0500, Ian E. 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).

Perhaps you haven’t installed the one you want to.

> My previous CentOS migration was smooth, so I don’t know why this one  
> has me tearing my hair out.

You know The CentOS Way – or you bypassed it by building yourself.

You don’t know The Ubuntu Way.

I suspect that you’ll be unhappy until you learn it, or until you learn  
to bypass it.

## f

Francis D. removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![peterpiper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3e96dc/32.png) [@peterpiper](https://www.ruby-forum.com/u/peterpiper)\
**Post date:** [November 22, 2013, 10:44am UTC](https://www.ruby-forum.com/t/debugging-and-ubuntu/237639/3 "2013-11-22T10:44:58Z")

</div>

On 22/11/2013 4:14 AM, Bob S. wrote:

> ```
> > 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.

---

<div class="post-metadata">

**Author:** ![peterpiper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3e96dc/32.png) [@peterpiper](https://www.ruby-forum.com/u/peterpiper)\
**Post date:** [November 22, 2013, 10:15am UTC](https://www.ruby-forum.com/t/debugging-and-ubuntu/237639/4 "2013-11-22T10:15:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![peterpiper](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/3e96dc/32.png) [@peterpiper](https://www.ruby-forum.com/u/peterpiper)\
**Post date:** [November 22, 2013, 11:01am UTC](https://www.ruby-forum.com/t/debugging-and-ubuntu/237639/5 "2013-11-22T11:01:55Z")

</div>

On 22/11/2013 4:44 AM, Ian E. wrote:[snip]

> 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:

[snip]

> 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.

Found this…

> **[Help getting php-fpm working with nginx - I get blank web pages](https://forum.nginx.org/read.php?3,197023,200719#msg-200719)**
>
> Greetings, Using a couple of tutorials, I believe I've got php-fpm correctly wired into my existing nginx environment. Whenever I access a .php page, I get a blank page in my browser. I can't figure out why. I can confirm that lots of stuff is right....

Added fastcgi\_param PATH\_TRANSLATED $document\_root$fastcgi\_script\_name;  
and so far so good.
