Mac OS X Server update breaks apachectl

The past few months, I’ve been ignoring an error message the server has been sending my way.

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

I decided to fix it today. So I Googled it and found this blog entry by Mike Walsh on his site.

A recent update to Mac OS X Server included some changes to apache, and included a typo in apachectl. Because the typo doesn’t cause any critical problem and just throws a invalid argument, Apple probably isn’t going to fix it. Depending on your server setup, the problem may be at line 73 or 82 of /usr/sbin/apachectl.

You could follow Mike’s example and pass along an empty set, but to me, it looked more like I should comment it out by putting a # sign in front of it. Either way, it’s fixed.