apache on unprivileged LXC - ulimit not permitted

tony blue

Well-Known Member
Dec 26, 2017
85
2
48
53
Hello,

this time I run my apache webserver in a KVM VM. To save ressources I try to reinstall it on a LXC. I think it is a good idea to take a unprivileged LXC container (no priveleged with root-rights).

But after I start apache I get

/usr/sbin/apachectl: 99: ulimit: error setting limit (Operation not permitted)

How can I solve this problem?

What is the best way to run a web accessible apache server?

a) KVM (Problem: ressources)
b) LXC unprivileged (Problem: ulimit not permitted)
c) LXC privileged (Problem: root-rights on the host)

Thank you!

Tony