Nginx in ubuntu (trusty) 14.04

After upgrading my stack Apache2-Nginx Ubuntu stack to Ubuntu 14.04
beta, I am getting these errors in /var/log/nginx/error.log

2014/03/13 16:11:01 [emerg] 14625#0: bind() to 0.0.0.0:80 failed (98:
Address already in use)
2014/03/13 16:11:01 [emerg] 14625#0: bind() to [::]:80 failed (98:
Address already in use)
2014/03/13 16:11:01 [emerg] 14625#0: bind() to 0.0.0.0:80 failed (98:
Address already in use)
2014/03/13 16:11:01 [emerg] 14625#0: bind() to [::]:80 failed (98:
Address already in use)
2014/03/13 16:11:01 [emerg] 14625#0: still could not bind()

However the strange thing is that the default configuration of nginx
on Ubuntu does not include any sites running on port 80 (because
Apache uses this port). In previous versions of Ubuntu I have never
seen these messages. So I don’t quite understand where these errors
are coming from.

Anyone familiar with the nginx package in Ubuntu can explain?

On Thursday 13 Mar 2014 10:05:22 Jeroen O. wrote:

However the strange thing is that the default configuration of nginx
on Ubuntu does not include any sites running on port 80 (because
Apache uses this port). In previous versions of Ubuntu I have never
seen these messages. So I don’t quite understand where these errors
are coming from.

Anyone familiar with the nginx package in Ubuntu can explain?

Not really but… After upgrading last Friday I found something
similar and also got “bad gateway 502” and php5-fpm segfaulted and
crashed. A downgrade to the Ubuntu 12.04 version of PHP5 fixed it.
All a bit strange. The present beta version of 14.04 would seem to be
very wobbly just now. I tried to build from the PHP source but that
crashed after running make.

I think that explains where I was going wrong. I didn’t know that
php5-fpm was broken in the 14.04 version. Finally got some web pages
out of NGINX the other day.


Richard
Sheffield UK

https://twitter.com/SleepyPenguin1

Hello!

On Thu, Mar 13, 2014 at 10:05:22AM -0700, Jeroen O. wrote:

Address already in use)
2014/03/13 16:11:01 [emerg] 14625#0: still could not bind()

However the strange thing is that the default configuration of nginx
on Ubuntu does not include any sites running on port 80 (because
Apache uses this port). In previous versions of Ubuntu I have never
seen these messages. So I don’t quite understand where these errors
are coming from.

Anyone familiar with the nginx package in Ubuntu can explain?

Note that “listen 80” is the default - so check if there is a
server{} block without listen directives.


Maxim D.
http://nginx.org/