The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Broken apache - make_sock error

Discussion in 'EasyApache' started by Starhawk-cyberpixels, Apr 6, 2003.

  1. Starhawk-cyberpixels

    Joined:
    Jan 1, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hello all,

    Our server's install of Apache decided to up and die on us last night just after we got a BIND problem cleared up. (I don't think the two are related - but who knows.)


    Basically, httpd will fail when restarted from WHM. When restarted (by any means) from the command line, httpd will report it was started successfully, but the server does not actually start running.

    I get the following error in my error_log:

    [Sun Apr 6 11:48:04 2003] [crit] (98)Address already in use: make_sock: could not bind to port 80


    I couldn't find any information on the cpanel forums (or on Google) regarding a resolution for this. I have already tried rebooting the server, and running /scripts/easyapache. Neither of these things cleared up the problem.

    Please help!
     
  2. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    Not sure, but did you check your httpd.conf? Look for everything in httpd.conf having to do with port 80.
    There should be a line 'Listen 80'.

    Check that SSL is not using port 80 somehow?

    Look at httpd.conf backups to check for differences.
     
    #2 jamesbond, Apr 6, 2003
    Last edited: Apr 6, 2003
  3. Website Rob

    Website Rob Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    1,506
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    Alberta, Canada
    cPanel Access Level:
    Root Administrator
    An example of what you should look for / find:

    #
    # Port: The port to which the standalone server listens. For
    # ports < 1023, you will need httpd to be run as root initially.
    #
    Port 80

    ##
    ## SSL Support
    ##
    ## When we also provide SSL we have to listen to the
    ## standard HTTP port (see above) and to the HTTPS port
    ##
    <IfDefine SSL>
    Listen 80
    Listen 443
    </IfDefine>
     
  4. Starhawk-cyberpixels

    Joined:
    Jan 1, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    For what it's worth, I did check that the two "Listen" lines were in there properly last night.

    However, my machine went into a kernel panic after a reboot attempt and is currently having its OS reinstalled.

    Sigh.

    Thanks for the help folks. But the beast is dead.
     
Loading...

Share This Page