apachectl script is broken under 10.6.5
ULIMIT MAXFILES="ulimit -S -n `ulimit -H -n`"
Which boils down to trying to run "ulimit -S -n unlimited", which then results in the error:-
-bash: ulimit: open files: cannot modify limit: Invalid argument
This should not really be a problem, as using the work 'unlimited' should be accepted by the ulimit command. But it's not!
As a temporary fix I have modified my apachectl script to change the line to read as follows:-
ULIMIT MAXFILES="ulimit -S -n 10240"
I got that limit by trial and error as someone on #httpd had recommended 65000! I guess there are some people that will know how to make a sensible target for this figure.
MacPro (2008), Mac OS X (10.6.5), 8800GT