Snow Leopard 10.6.5 and apachectl

I just upgraded to 10.6.5 and noticed that apachectl stops working properly. When I run apacheclt now it gives me this error:

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

The problem seems to be with the ULIMIT variable in the shell script:

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

I think the problem is that ulimit returns “unlimited” which cannot be used in the command ulimit -S -n, so I just changed the ULIMIT back to what it was before upgrading to 10.6.5:

ULIMIT_MAX_FILES=""

8 thoughts on “Snow Leopard 10.6.5 and apachectl

  1. I ve just upgrade to Snow Leopard 10.6.5 and apachectl did the same !
    So I ve applied your solution and everything is ok, thank’s.
    But why this line was changed in the upgrade ?

  2. Pingback: Tweets that mention Snow Leopard 10.6.5 and apachectl | Notfornoone -- Topsy.com

  3. I have been working through getting my system working as well. Thank you for the tip and correction, it worked like a charm.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>