OS X 10.6.5+ apachectl line 82

I was trying to play around with passenger under OS X Snow Leopard. After following the instructions on how to install passenger for apache I tried to restart it which resulted in the following error:

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

After searching the net for the error a solution was quickly found. Apple seems to have updated the Apache and thereby broke the apachectl script.

The following workaround worked for me; The referenced variable ULIMIT_MAX_FILES which is referenced a bit above, is defined as follows:

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

redefining it as follows, solved my problem:

ULIMIT_MAX_FILES=""

Question remaining: What does ULIMIT_MAX_FILES stand for?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: