Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I try to restart apache, I get the following:

  • Starting web server apache2 (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
share|improve this question
1  
Are you trying to start Apache as root? –  EightBitTony May 28 '12 at 7:56
    
Damn, I'm fairly new to linux... Didn't know that the solution is so simple. Thanks! sudo service apache2 restart –  FakeHeal May 28 '12 at 7:58
add comment

1 Answer

up vote 1 down vote accepted

You need to have elevated permissions to bind to ports below 1024 and open the apache logs. Switch to a suitable account to restart apache

sudo service apache2 restart

or similar.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.