By using AWS re:Post, you agree to the Terms of Use

unable to start httpd service - getting Address Already in use: make_sock: could not bind to address

0

I copied new ssl cert files to my server but upon doing a httpd restart I get the following error: (98) Address Already in use: make_sock: could not bind to address [::]:80 (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 Pretty sure this is related to something other than the new certificate files, but this is the first time I attempted to restart the server in quite some time.

  • Sorry you'll have to be a little more specific about what you're trying to do. Please elaborate further - what're you trying to do? What certificates are you using? Is it just an EC2 instance? Is this an EC2 instance that is acting like an IoT thing?

1 Answers
0

It looks like you are having trouble with your Apache server. The Address Already in use error message indicates that there may already be an httpd process running, and you can attempt to manually kill that process following these steps:

Run the command "ps -aux |grep httpd" (remove quotation marks) in your terminal to find any processes related to httpd. Look to see what services are running, find the Apache process, and then kill it using the command "kill -9 <ProcessID>" (replace <ProcessID> with the unique process ID of the Apache process).

After you have completed the previous steps, restart your Apache service. If this does not resolve your issue, please reach out with further information on what errors you encounter.

Cheers!

answered 23 days ago
EXPERT
reviewed 6 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions