Apache won't start - error message

Discussion in 'Apache' started by mickapoo, Oct 1, 2008.

  1. #1
    Apache used to work fine. Now I have an error message when I try to start it. The error message states that there are no listening sockets available on Port 80. I don't remember what I entered in the run command a few days ago, but once I entered it, it told me that nothing was listening on that port. So, I'm not sure how to find out what could already be using it. Or should I change something so that Apache listens on a different port? I have heard that having port 80 open is a real security risk. Is this the case?

    Thank you for your help.
     
    mickapoo, Oct 1, 2008 IP
  2. Kionic.com

    Kionic.com Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi mickapoo,

    Did you install any software lately? Probably that new software caused the conflict.
     
    Kionic.com, Oct 1, 2008 IP
  3. ChrisMiller

    ChrisMiller Prominent Member

    Messages:
    1,934
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    315
    #3
    I would Recommend Maybe going to: Software> Apache Update > and Build a Basic Profile with no addons and let me know if that helps..


    -Chris
     
    ChrisMiller, Oct 1, 2008 IP
  4. HostPenguin

    HostPenguin Peon

    Messages:
    68
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,

    Did you accidentally change the port to something else? You can see what port 80 is currently using with a " less /etc/services " and you can also try to "telnet localhost 80" and let me know the results.
     
    HostPenguin, Oct 1, 2008 IP
  5. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #5
    check the error_log of your apache :)
     
    nimhost, Oct 1, 2008 IP
  6. hostsvault

    hostsvault Guest

    Messages:
    143
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Well for these kind of errors , I'd like first to see if any runaway process still listening to port 80
    you can easily find it with this command

    netstat -anp | grep ":80"

    if you see something like this

    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1790/httpd

    so process httpd with pid 1790 is still listening to port 80 , you need to kill it and then restart your apache server.

    hope this helps.
     
    hostsvault, Oct 8, 2008 IP
  7. genius24k

    genius24k Active Member

    Messages:
    114
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #7
    Just do netstat | grep LISTEN and see if something is using port 80, then just kill that process using kill pid or kill -9 pid or stop it through /etc/init.d/ (proper way)
     
    genius24k, Oct 9, 2008 IP
  8. hoodvs

    hoodvs Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    check the process list to see if httpd is still running. It's probably just hung up. You might kill it and then run your apache startup command.
     
    hoodvs, Oct 11, 2008 IP
  9. mickapoo

    mickapoo Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #9
    The last thing I installed I believe was bitzipper, but I don't know if this Apache error started before that.

    Thank you for all the responses! I just got notified, so I'm going to go down the list and reply to each post.
     
    mickapoo, May 27, 2009 IP
  10. mickapoo

    mickapoo Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #10
    The pop up tells me the shortcut is missing, then Windows tries searching for the log file but it never finds it.
     
    mickapoo, May 27, 2009 IP
  11. mickapoo

    mickapoo Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #11
    I tried the telnet localhost command and it said:
    Could not open connection to the host, on port 80: Connect failed.

    Where you mentioned " less /etc/services ", above, do I enter this at the command prompt?

    Thank you!
     
    mickapoo, May 27, 2009 IP
  12. mickapoo

    mickapoo Member

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #12
    I tried this and got the message that "grep" is not a valid command.
     
    mickapoo, May 27, 2009 IP