Cannot start httpd, 443 in use.

Issues related to configuring your network
Post Reply
MikeBerger
Posts: 19
Joined: 2019/01/02 23:28:04

Cannot start httpd, 443 in use.

Post by MikeBerger » 2019/02/05 23:13:47

On my new Centos 7, I just tried to bring up httpd, using config files that have worked in the past. I did have to do some mods. Additionslly, I have removed NetworkManager, and I am using iptables (I did stop iptables for one test, I am behind a firewall). When I try

Code: Select all

systemctl start httpd
httpd fails.

Code: Select all

systemctl -l status httpd
tells me:
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
Note that in the httpd.config I have:

Code: Select all

Listen  127.0.0.1:80
Listen  192.168.9.40:80
Listen  192.168.9.40:443
Listen  127.0.0.1:8090
and VirtualHosts to deal with all of them. No 0.0.0.0:443.
also,

Code: Select all

[root]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 0.0.0.0:sunrpc          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:x11             0.0.0.0:*               LISTEN     
tcp6       0      0 [::]:sunrpc             [::]:*                  LISTEN     
tcp6       0      0 [::]:x11                [::]:*                  LISTEN     
udp        0      0 0.0.0.0:sunrpc          0.0.0.0:*                          
udp        0      0 myhost:ntp              0.0.0.0:*                          
udp        0      0 localhost:ntp           0.0.0.0:*                          
udp        0      0 0.0.0.0:ntp             0.0.0.0:*                          
udp        0      0 0.0.0.0:netconfsoapbeep 0.0.0.0:*                          
udp        0      0 localhost:commplex-main 0.0.0.0:*                          
udp6       0      0 [::]:sunrpc             [::]:*
Thanks for any help.
Mike.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Cannot start httpd, 443 in use.

Post by TrevorH » 2019/02/05 23:53:05

Listen 192.168.9.40:443
Probably conflicts with the one in /etc/httpd/conf.d/ssl.conf
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

MikeBerger
Posts: 19
Joined: 2019/01/02 23:28:04

Re: Cannot start httpd, 443 in use.

Post by MikeBerger » 2019/02/06 01:59:27

Yes, that was it. Thanks.

Post Reply