apache on unprivileged LXC - ulimit not permitted

tony blue

Well-Known Member
Dec 26, 2017

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!



The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!