It appears you have not registered with our community. To register please click here ...

Author Topic: [Solution] Apache Restart Error: could not bind to port 443  (Read 1870 times)

dynaweb

  • <b>Canine Deamon</b>
  • Administrator
  • Sr. Member
  • *****
  • Posts: 493
  • Karma: +10/-0
  • Generic personal text here ...
    • MSN Messenger - danno_d_manno@yahoo.com
    • View Profile
    • DynaWeb Designs
    • Email
[Solution] Apache Restart Error: could not bind to port 443
« on: August 16, 2005, 10:54:12 AM »
The specific error message that I get is when attempting to restart Apache:[indent]Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443

no listening sockets available, shutting down

[/indent]A few of my servers have been throwing this error when attempting to restart Apache. I noticed it was on servers running Plesk, although I am not sure if that is just a coincidence or not. Anyhow, this problem haunted me badly since upon running the restart command

Code: [Select]
service httpd restart[/color]
i would get the error and Apache would not start up at all. I looked around for solutions everywhere and found no help so I just ended up rebooting the server. That would get the process back running again, but I hate restarting servers if not absolutely necessary.
 
Anyhow, I found the fix for this a month or so ago and wanted to share it. After getting the error, run
Code: [Select]
fuser 443/tcp[/color]
This will show which actual processes are hanging on to port 443. For examplr if the output is processes xxxx yyyy and zzzz just run the following command:
Code: [Select]
kill -9 xxxx yyyy zzzz[/color]
This forcefully kills those pesky processes that are hanging on to port 443 and wouldn\'t listed to Apache when told to let go for the restart. Now you can run:
Code: [Select]
service httpd start[/color]
and you are all happy again :) I hope this is helpful for y\'all.
« Last Edit: December 03, 2005, 10:18:27 AM by dynaweb »
Those who cannot learn from history are doomed to repeat it. -- Linux learns.

adb22791

  • Former Moderator
  • Full Member
  • ***
  • Posts: 149
  • Karma: +10/-0
    • ICQ Messenger - 226098809
    • View Profile
    • Email
[Solution] Apache Restart Error: could not bind to port 443
« Reply #1 on: August 16, 2005, 02:25:42 PM »
Excellent! I can\'t count how many times something has crashed and blocked up a port, and I\'ve had to end up rebooting the entire server and pissing clients off.
-Alex

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
181 Views
Last post November 21, 2005, 11:57:35 PM
by Linux News
0 Replies
180 Views
Last post December 02, 2005, 08:19:25 PM
by Linux News
0 Replies
193 Views
Last post December 23, 2005, 03:55:22 AM
by Linux News
0 Replies
489 Views
Last post August 23, 2010, 12:16:26 AM
by darshin
2 Replies
1021 Views
Last post September 20, 2010, 09:57:35 AM
by darshin