After reboot of the server if you have trouble starting apache and you get the following error message
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
This is due to password associated with the SSL certificate. After rebooting, system is trying to start apache as it has been configured that way, but unable to start due to required pass phrase.
There are two options, either remove the pass phrase or kill the process that is binding port 80. Following is the command to find that process
> sudo netstat -ltnp | grep ':80'
This will result into something like
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1393/apache2
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
This is due to password associated with the SSL certificate. After rebooting, system is trying to start apache as it has been configured that way, but unable to start due to required pass phrase.
There are two options, either remove the pass phrase or kill the process that is binding port 80. Following is the command to find that process
> sudo netstat -ltnp | grep ':80'
This will result into something like
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1393/apache2
> kill -9 1393
start apache and provide the pass phrase, you are good to go.