I've started using Linux for the first time a few days ago, as I tried to install a Home server. I've followed a tutorial for the most part, but I'm stuck at a weird issue. A few google searches didn't help solving it :/
The issue:
If I type
- Code: Select all
service apache2 start
I get
- Code: Select all
Starting web server: apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
However, a quick
- Code: Select all
netstat -lnp
gives this
- Code: Select all
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2683/perl
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2154/proftpd: (acce
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2347/sshd
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2469/mysqld
udp 0 0 0.0.0.0:21958 0.0.0.0:* 1844/dhclient
udp 0 0 0.0.0.0:10000 0.0.0.0:* 2683/perl
udp 0 0 0.0.0.0:68 0.0.0.0:* 1844/dhclient
udp 0 0 192.168.2.107:123 0.0.0.0:* 2011/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 2011/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 2011/ntpd
So... No port 80 is being used it seems here. I don't get it. Most of the google search answer had another process running through port 80, and simply killing it was enough to solve the issue. It doesn't seem to be the case for me...
Also I wonder whether this is related/normal:
- Code: Select all
service apache2 stop
[ ok ] Stopping web server: apache2.
service apache2 stop
[ ok ] Stopping web server: apache2.
service apache2 stop
[ ok ] Stopping web server: apache2.
service apache2 stop
[ ok ] Stopping web server: apache2.
Should I be able to chain-stop apache2? Is this normal behaviour?
Thanks a lot for the answers, I a bit lost!