OS X 10.6.5+ apachectl line 82
23. February, 2011 Leave a comment
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?