SOVED apache already in use error

hello.

I just ran a````
/etc/init.d/apache2 restart

and I'm getting this error

Restarting web server: apache2(98)Address already in use: makesock: could not bind to address [::]:80 (98)Address already in use: makesock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
failed!

Then I ran````
netstat -lnp | grep :80

and then this was the output

tcp6       0      0 :::80                   :::*                    LISTEN      2057/apache2 

I don't know what that means. Some help would be very much appreciated.

Thanks,

John

2 Replies

I don't know if I did this correctly, but I did

killall -9 2057

then started apache2 back up, it worked. but just wondering if this is the proper way of doing it. I read an article, http://ubuntuforums.org/showthread.php?t=1636667 where its the case of the ssl certs.

Is there a way around this?

thanks,

John

I don't know if I did this correctly, but I did

killall -9 2057

then started apache2 back up, it worked. but just wondering if this is the proper way of doing it. I read an article, http://ubuntuforums.org/showthread.php?t=1636667 where its the case of the ssl certs.

Is there a way around this?

thanks,

John

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct