apache2/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)

When I try to restart Apache using my root account on Debian, I get the following message:
apache2/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
graham on 26-11-2013 04:19
To change this, I first checked the ulimit for root by typing
ulimit -a

which among many results gave me the following line:
open files                      (-n) 65535

So then I went to edit file /ect/security/limits.conf and added the following lines:
root          soft     nofile         65535
root hard nofile 65535

Then I relogged and was able to fire off Apache without the error message.
graham on 26-11-2013 04:21

Post an answer

Do you have a solution to this problem, or want to comment on it? Other users will appreciate your help!
Your answer or comment:
Show formatting hints
HTML is disallowed, but in your text you can use the following markup
  • [code][/code] for a block of code
  • [tt][/tt] for inline code
  • [link]link href|link anchor[/link] for links
  • [b][/b] for bold text
+ Ask a question
If you have a technical question related to programming and computers, ask it here. Other users will help you solve it!
Unanswered questions
Share your knowledge by helping others solve their problems