Skip to main content

[Case 99137] Address already in use: make_sock: could not bind to address

Comments

17 comments

  • cPanelMichael
    Hello :) Changes made to the httpd.conf file through manual edits are not preserved unless you use the distiller. However, the following entries are normal and should exist: Listen 0.0.0.0:80 Listen [::]:80 Listen 0.0.0.0:443 Listen [::]:443
    Do you notice duplicate entries, or do you have any other service already running on these ports? Thank you.
    0
  • 2kreative
    I have the exact same problem! Removing Listen [::]:80 Listen [::]:443 allows apache to start, otherwise I get the address already in use. This happened after I ran /scripts/buildhttpdconf Any ideas?
    0
  • cPanelMichael
    Do you have any reserved IP addresses in "WHM >> Service Configuration >> Apache Configuration >> Reserved IPs"? Also, what version of cPanel is installed on your system? Thank you.
    0
  • cPanelMichael
    Could you review my last post and let us know if that applies in your case? Thank you.
    0
  • unity200
    I have the same situation, latest cpanel CURRENT, and no reserved ips.
    0
  • cPanelMichael
    Please open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • unity200
    I dont want to divulge root access to server. I commented out Listen [::]:80 and Listen [::]:443 and apache restarted.
    0
  • cPanelMichael
    It's likely that IPv6 is enabled, and it's been a while since EasyApache was ran, so a patch that addresses the issue has not been applied. Are you able to rebuild Apache via EasyApache and let us know if the issue persists? Thank you.
    0
  • cPanelMichael
    The custom entry you added could have been interfering with the configuration that cPanel now uses automatically. Thank you.
    0
  • GOT
    Saw this on a server today. We do have a reserved IP, but IPv6 is not enabled. Can't re-run easyapache because this server is still running php 5.2 and the operators are not ready to update that to 5.3. I manually edited out the listen lines as described, but am hoping for another more reliable fix.
    0
  • cPanelMichael
    [quote="GOT, post: 1626971">Saw this on a server today. We do have a reserved IP, but IPv6 is not enabled. Can't re-run easyapache because this server is still running php 5.2 and the operators are not ready to update that to 5.3. I manually edited out the listen lines as described, but am hoping for another more reliable fix.
    The recommended solution to this issue is run EasyApache. Note that PHP 5.2 is available as a custom module here: EasyApache - Custom Modules Thank you.
    0
  • GOT
    [quote="cPanelMichael, post: 1627171">The recommended solution to this issue is run EasyApache. Note that PHP 5.2 is available as a custom module here: EasyApache - Custom Modules Thank you.
    I used that once but it was missing some options. As I understand it you cannot select any of the options on the exhaustive list. Anything else that can be done?
    0
  • cPanelMichael
    [quote="GOT, post: 1627182">I used that once but it was missing some options. As I understand it you cannot select any of the options on the exhaustive list. Anything else that can be done?
    1. You could try using raw opts to include additional modules with PHP. EasyApache - Raw Opts However, note that it's not supported so it's not guaranteed to work without conflicts. 2. We do have an internal case open (#99137) to explore alternatives to resolving this issue without utilizing EasyApache. There is currently no time frame available on such a solution, but I will monitor the case and update this thread with the outcome. Thank you.
    0
  • cPanelMichael
    A resolution for internal case 99137 is now scheduled for a future build of cPanel. The fix will add a check to ensure the IPv6 "Listen" directives are populated only when the httpd options support it (IPv4-mapped addresses is disabled). You can monitor our change logs for this case number. Thank you.
    0
  • elmister
    Same problem here, server without IPv6 configuration, after some apache restart it doesn't come up httpd.conf contains the line Listen [::]80 no reason for that line to be there, this server is not IPv6 enabled. I'm afraid that hundreds of servers without IPv6 may have this line added and apache crashed. Even if i remove the lines, everytime httpd.conf is rebuilt the lines are added again and the server goes down. We can't prevent users from adding domains or subdomains and that would cause httpd.conf to be rebuilt
    0
  • zye
    Re: [Case 80445] Apache Fails - Address already in use same issue just happend again after /usr/local/cpanel/scripts/upcp --cron how can i prevent this in the future?
    0
  • cPanelMichael
    The resolution referenced in my previous post is included with cPanel version 11.42.1.12. This version is now available on all build tiers other than "Stable". This build is expected to make it's way to the "Stable" tier later today. Thank you.
    0

Please sign in to leave a comment.