Apache service issue - Unable to bind to port

Unable to bind to port

The webserver will fail to bind to the concerned port i.e. 80 if it is open by another process. In such cases, we need to identify the process which occupies the port and need to terminate it.The following command will show the existing connections to port 80

#netstat -an | grep \\.80


or
You can identify the apache process using the command as well

# pgrep httpd

or
The process associated with the port number using the following command:

#lsof -i tcp:80


No comments: