Apache: "make_sock: failed to get a socket for port 80" error

[b][red]This message was edited by prickus at 2002-8-26 5:19:7[/red][/b][hr]
Hello,

I've posted a message previously asking to help me
install Apache 1.3 on Win98. I need to use Apache only
for testing my PHP code before uploading it.

I've managed (with the help of my friends) to
configure httpd.conf so that Apache now outputs only
one error into error.log when I try to start it:

"[crit] make_sock: failed to get a socket for port 80"

I know that for Win98 TCP/IP networking and Winsock2 must
be installed in order for Apache to operate properly.

Maybe that's the problem? But how do I check that?
Besides, I know that in Win98 Winsock2 is installed by default.

Oh yes, and I have no internet connection. But that shouldn't
prevent Apache from starting, should it?

One more thing: is it better to install Apache as a
Win98 service or a console app?

Any advice, comments would be appreciated.
Thanks.




Comments

  • : [b][red]This message was edited by prickus at 2002-8-26 5:19:7[/red][/b][hr]
    : Hello,
    :
    : I've posted a message previously asking to help me
    : install Apache 1.3 on Win98. I need to use Apache only
    : for testing my PHP code before uploading it.
    :
    : I've managed (with the help of my friends) to
    : configure httpd.conf so that Apache now outputs only
    : one error into error.log when I try to start it:
    :
    : "[crit] make_sock: failed to get a socket for port 80"
    :
    : I know that for Win98 TCP/IP networking and Winsock2 must
    : be installed in order for Apache to operate properly.
    :
    : Maybe that's the problem? But how do I check that?
    : Besides, I know that in Win98 Winsock2 is installed by default.
    :
    : Oh yes, and I have no internet connection. But that shouldn't
    : prevent Apache from starting, should it?
    :
    : One more thing: is it better to install Apache as a
    : Win98 service or a console app?
    :
    : Any advice, comments would be appreciated.
    : Thanks.
    :

    That's one nasty error you've got yourself! I believe under Win98 you'll surely have Winsock2. The only thing to maybe check is that you have no other server running on port 80, which may well generate that error. Or it could be something else... If you don't find anything else running on Port 80 maybe get the latest Apache release...it may be an issue that was fixed, though their releases are normally tested well.

    I always ran Apache as a console app and it gave no problems...I prefer to start it on demand rather than having it run all the time and create a potential security hole in my system myself. :-)

    -------------------------------------------
    Count downloads from your site for free!
    http://www.downloadcounter.com/
    Oh yeah, I run a web hosting thing now too.
    http://www.incrahost.com/

  • Thanks,

    I believe my port 80 is free, since I've checked it
    with "netstat /an" (or something) and it displayed
    an empty list.

    I'll try to re-install Apache as a console app,
    but I think I've already tried it and it didn't work
    as well.

    I don't think it could be an Apache bug. There are
    a lot of pals using it on Win98 with no problems.

    Well thanks again anyway.

  • : Thanks,
    :
    : I believe my port 80 is free, since I've checked it
    : with "netstat /an" (or something) and it displayed
    : an empty list.
    :
    : I'll try to re-install Apache as a console app,
    : but I think I've already tried it and it didn't work
    : as well.
    :
    : I don't think it could be an Apache bug. There are
    : a lot of pals using it on Win98 with no problems.
    :
    : Well thanks again anyway.
    :

    Hi,

    Strange....very strange. If you look in your Network settings on your PC (control panel) then you should go in there and see a list of protocols that are installed...hopefully you'd see something like TCP/IP in the list. Do you?

    Jonathan


    -------------------------------------------
    Count downloads from your site for free!
    http://www.downloadcounter.com/
    Oh yeah, I run a web hosting thing now too.
    http://www.incrahost.com/

  • Maybe I'll note one more thing about my nifty problem.

    Every time I re-install Apache I find
    error.log filled with errors even BEFORE
    I try to start Apache for the first time.

    The content of error.log is something like as follows:

    Apache: no such file or directory(2) could not determine...
    ...server's fully qualified domain name using 127.0.0.1 as ServerName
    make_sock: failed to get a socket for port 80

    I don't know what to say about the first error, as there are no
    non-existing paths in my httpd.conf.

    I just hope that could give you at least a tiny clue about
    what the heck could be wrong with my Apache.

    Maybe I should upgrade to Apache 2+ ?

  • : Maybe I'll note one more thing about my nifty problem.
    :
    : Every time I re-install Apache I find
    : error.log filled with errors even BEFORE
    : I try to start Apache for the first time.
    :
    : The content of error.log is something like as follows:
    :
    : Apache: no such file or directory(2) could not determine...
    : ...server's fully qualified domain name using 127.0.0.1 as ServerName
    : make_sock: failed to get a socket for port 80
    :
    : I don't know what to say about the first error, as there are no
    : non-existing paths in my httpd.conf.
    :
    : I just hope that could give you at least a tiny clue about
    : what the heck could be wrong with my Apache.
    :
    : Maybe I should upgrade to Apache 2+ ?
    :
    :

    Hi,

    I'd try Apache 2 anyway as it is supposed to perform better under Win32 generally. After all this, I must say that now I believe your problem is down to the network settings on your PC. You may not have TCP/IP installed at all if you are not on the Internet or on a network. I'd check this (look at Network in Control Panel) before going any further. If TCP/IP is not listed in there, you'll need to click the Add button and then choose Protocol, and from the list choose to add TCP/IP. That will install hopefully the missing stuff and Apache may work. I'd try this before trying Apache 2. :-)

    Any luck?

    Jonathan



    -------------------------------------------
    Count downloads from your site for free!
    http://www.downloadcounter.com/
    Oh yeah, I run a web hosting thing now too.
    http://www.incrahost.com/

  • I'd like to thank you all guys for your help.
    You were right about TCP/IP - it was not installed
    in my Win98. But after I installed it and re-installed Apache,
    the same "make_sock" error kept playing on my nerves.
    So I think I'll try do upgrade to Apache 2.
    Thanks, again.

  • Hi,

    Well, you're a step closer... Maybe Apache 2.0 will solve it, but I'm not certain it will...I think it may well be your Windows setup. I remember plently of tiresome network related issues (and TCP/IP and sockets are a network thing) under the 9x series of Windows. XP seems half decent on it though, and 2000...they're a bit more up to the job.

    Anyway, keep me/anyone else looking at the thread updated!

    Laters,

    Jonathan




    -------------------------------------------
    Count your downloads:
    http://www.downloadcounter.com/
    And host your site:
    http://www.incrahost.com/
    Don't say I never give you anything... ;-)

  • Have you bound TCP/IP to anything? I'm not positive, however, I think that windows ignores a protocol until its bound(because it doesn't know what the protocol is doing). If this is the case, and you have network card, try binding it to the network card. Apache 1.3 runs fine in winxp over lan and internet(at least on my machine...).
    -----------------------
    "The three principle virtues of a programmer are laziness, impatience, and hubris"

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories