Apache listening problem
After an upgrade of Centos from 6.5 to 6.8 on BB2, web sites suddenly stopped working, despite Plone being up and running and accessible through the correct ports...
I checked that Apache was running
ps -ef | grep httpd
OK
I tried:
netstat -tulpen
That gave:
tcp 0 0 127.0.0.1:8103 0.0.0.0:* LISTEN 500 13518 1719/python tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN 0 10340 1330/snmpd tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 27 11206 1497/mysqld tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 0 16942 1883/httpd tcp 0 0 0.0.0.0:8086 0.0.0.0:* LISTEN 500 13549 1724/python tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 10382 1347/sshd tcp 0 0 0.0.0.0:8087 0.0.0.0:* LISTEN 500 13571 1729/python tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 0 11446 1592/master tcp 0 0 :::22 :::* LISTEN 0 10384 1347/sshd tcp 0 0 ::1:25 :::* LISTEN 0 11448 1592/master udp 0 0 87.246.76.84:123 0.0.0.0:* 0 10447 1358/ntpd udp 0 0 127.0.0.1:123 0.0.0.0:* 0 10446 1358/ntpd udp 0 0 0.0.0.0:123 0.0.0.0:* 0 10438 1358/ntpd udp 0 0 0.0.0.0:161 0.0.0.0:* 0 10338 1330/snmpd udp 0 0 fe80::230:48ff:fe79:6ff8:123 :::* 0 10449 1358/ntpd udp 0 0 ::1:123 :::* 0 10448 1358/ntpd udp 0 0 :::123 :::*
The relevant part being
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 0 16942 1883/httpd
When I compared this is BB4 (also Centos 6.8) that gave:
tcp 0 0 :::80 :::* LISTEN 0 17690 2401/httpd
and BB3 (Centos 5.11) gave
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 15508 4924/httpd
So it looked like Apache wasn't listening quite right. Sure enough in /etc/http/conf/http.conf on BB4:
Listen 80
But on BB2:
Listen 127.0.0.1:80
I tried Listen 80, but that actually stopped it listening anywhere (perhaps IPv6 isn't enabled?), so then I tried
Listen 0.0.0.0:80
And that worked! All is good.
Document Actions




{Built on Planet Plone}