Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed lampp / xampp on my Ubuntu 12.04. After installing, Apache and MySQL were running properly. Now, they're not. Here's what I get when I try to run apache:


/etc/init.d/apache2 start


* Starting web server apache2 
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
(13)Permission denied: make_sock: could not bind to address
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
share|improve this question
everytime you get an error that contains Permission denied, try prepending the command sudo to it. :) – Evandro Silva Oct 24 '12 at 17:35
thanks for the tip, Evandro! – Valeriu Oct 25 '12 at 21:46

I guess you forgot the sudo:

sudo /etc/init.d/apache2 start

The better way to start apache (or any other init.d service) is:

sudo service apache2 start
share|improve this answer
ha thanks! I did forget the sudo! It's working now - I'm learning PHP ;) – Valeriu Oct 25 '12 at 21:45
@Valerlu if you found it useful, please mark it as answer. :) – Evandro Silva Oct 26 '12 at 0:15

Your Answer


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.