URGENT: unreachable web server on Ubuntu 18.04 running on EC2/AWS
M. Fioretti
mfioretti at nexaima.net
Thu Feb 20 17:51:12 UTC 2020
On Thu, Feb 20, 2020 12:36:18 PM -0500, Ken D'Ambrosio wrote:
> On 2020-02-20 12:27, M. Fioretti wrote:
>
> > What am I missing? Surely something embarrassing, but since I'm in a
> > bit of a hurry, any help is welcome.
>
> You sure Apache is actually *running*? What happens if you do this (as
> root, from the host):
> lsof -P -i -n | grep ":80"
> ?
Hi Ken,
lsof returns nothing, see below. One second before reading your
question, I had also found with netstat that apache2 is only doing
tcp6, see also below, after output of systemctl
What next? (I continue to investigate on my side, of course, but the
sooner I get this fixed, the better...)
#> sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: active (running) since Thu 2020-02-20 17:40:29 UTC; 7min ago
Process: 878 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 959 (apache2)
Tasks: 55 (limit: 1152)
CGroup: /system.slice/apache2.service
├─959 /usr/sbin/apache2 -k start
├─960 /usr/sbin/apache2 -k start
└─961 /usr/sbin/apache2 -k start
Feb 20 17:40:28 ip-address systemd[1]: Starting The Apache HTTP Server...
Feb 20 17:40:29 ip-address systemd[1]: Started The Apache HTTP Server.
NOTE: THE ip-address above is NOT the ip4 public address listed in the aws control panel
sudo netstat -tlpn | grep :80
tcp6 0 0 :::80 :::* LISTEN 959/apache2
#> lsof -P -i -n | grep ":80"
#>
More information about the ubuntu-users
mailing list