I'm trying to change the file descriptor limits for Apache.
The problem is that the limits set through "/etc/security/limits.conf" don't apply to system users like "apache" with no login shell.
I've tested it with this simple PHP code:
<?php echo "User: "; echo exec('whoami'); echo "<br>FD Soft Limit: "; echo exec('ulimit -Sn'); echo "<br>FD Hard Limit: "; echo exec('ulimit -Hn'); ?>
I've also tried to modify a variable from "/usr/sbin/apachectl":
ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
OS: CentOS release 6.4 (Final) Apache: Apache/2.2.15