apachectl stopped working after Mac OSX 10.6.5

I noticed today when I tried to restart apache on my Mac that it had stopped working and gave me this error:

/usr/sbin/apachectl: line 82: ulimit: open files: cannot modify limit: Invalid argument

Luckily the world is a big place and someone had already fixed the problem.

Just open up /usr/sbin/apachectl and change (around line 64):

ULIMIT_MAX_FILES=”ulimit -S -n `ulimit -H -n`”



Leave a Reply