Permission denied: make_sock: could not bind to address 0.0.0.0:80

Did you just type

service apache2 restart

or

/etc/init.d/apache2 restart

and get stuff like:

* Starting web server apache2 ulimit: 88: error setting limit (Operation not permitted)
(13)Permission denied: make_sock: 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.

It is unlikely to be a big crisis. Looks like you don’t have permissions. Apache needs to be started by root user. Are you root? Try

sudo service apache2 restart

You’re welcome :p


Posted

in

by

Tags:

Comments

10 responses to “Permission denied: make_sock: could not bind to address 0.0.0.0:80”

  1. Mhd1989 Avatar
    Mhd1989

    i just realised that i am so dumb !!

    1. vidyut Avatar

      I know the feeling 馃榾

  2. Jesse Miller Avatar
    Jesse Miller

    You sir have style. Awesome.

  3. […] it’s not because I’m not running this as root (as explained here, here and there) : I’ve used the sudo command […]

  4. c11ada Avatar

    I keep getting the same error even when I sudo and logged in as root !! any ideas ??

  5. Mike Litorus Avatar
    Mike Litorus

    You Complete Me

  6. B Avatar
    B

    I am logged in as root over ssh and I still get the same error.

  7. qsdfgh Avatar
    qsdfgh

    Doesn’t work

  8. Aar贸n Avatar
    Aar贸n

    It works.
    Thank you!!

  9. Gorchev Avatar

    It is indeed working! Thanks

Leave a Reply to vidyut Cancel reply

Your email address will not be published. Required fields are marked *