Failed to start The Apache HTTP Server. (98)Address already in use: AH00072: make_sock: could not bind to address [::]:443

Using netstat command check to find out what is consuming port 443

# netstat -tulpn | grep 443
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1508/sshd
tcp6 0 0 :::443 :::* LISTEN 1508/sshd

Notice the process ID that are assigned

You can restart sshd to verify

# service sshd restart
# netstat -tulpn | grep 443
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 13748/sshd
tcp6 0 0 :::443 :::* LISTEN 13748/sshd

# ps -ef | grep sshd
root 13748 1 0 14:06 ? 00:00:00 /usr/sbin/sshd -D
root 13763 13248 0 14:06 pts/0 00:00:00 grep --color=auto sshd

Now that we confirmed the process ID that is consuming port 443, kill -9 PID

# netstat -tulpn | grep 443

Notice there is nothing consuming port 443, now start httpd

# systemctl restart httpd

# ps -ef | grep http
root 13846 1 1 14:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 13848 13846 7 14:07 ? 00:00:01 /usr/sbin/httpd -DFOREGROUND
apache 13849 13846 0 14:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 13851 13846 0 14:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 13852 13846 0 14:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 13853 13846 0 14:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
apache 13867 13846 0 14:07 ? 00:00:00 /usr/sbin/httpd -DFOREGROUND
root 13869 13248 0 14:07 pts/0 00:00:00 grep --color=auto http

Leave a Reply

RELATED POST

Reverse Proxy Apache2

In continuation of the previous reverse proxy solution, here its using apache2 in /etc/apache2/sites-available/kewrunner.com.conf (for example). <VirtualHost *:80> ServerName kewrunner.com…

Lab Hack: Apache URI purgatory

To HTTP or to HTTPS, that is the question. This lab hack takes me deep into the domain.conf which controls…

Reverse Proxy Apache

Neat trick after subdomain is created, want to preserve the url for example lets look at this lab hack (its…