Apache Restart Error In OS X
I know quite a few of you are using OS X for your ColdFusion development so I thought I would post this in case anyone else has run into it.
On My new iMac, I was making a few changes to the apache config and issued a restart using the apachtctl restart command. I was greeted promptly with the following error:
/usr/sbin/apachectl: line 82: ulimit open files: cannot modify limit: Invalid argument
Now I know this works, I had been using it on my MacBook Pro to restart apache. So I did a little digging and apparently in the OS X 10.6.5 update, the apachectl script was updated and a bug was introduced. Luckily its a simple fix, head to line 64 of the /usr/sbin/apachectl file and change the following line:
ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
to this:
ULIMIT_MAX_FILES=""
Save the file and your apachectl script should work without issue.






Hi,
the two lines seems to be identical.
Andrea
You would be exactly right… When upgraded my blog I was converting several of the code snippets to a new plugin and I forget to change the second line back after a copy/paste. Fixed now, thanks for the heads up!