We tried /etc/security/limits.conf, but that seems to have no effect.
The used line for limits.conf looks as follows:
myuser hard nproc 6
That is configuration for a server. I want to limit the processes started. Ulimit limits the processes started from the shell (if I understand that right). But in my case apache starts mapserver-processes, and that number have to be limited.
/etc/security/limits.confis a configuration file for PAM's pam_limits module, but Apache isn't spawning processes through PAM, so it will have no effect. – Kees Cook Dec 08 '10 at 21:32