Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Sunday, April 14, 2013

Set Up a Virtualhost for Your Rails App on Localhost on OSX

You can map http://myapp.dev:80 to http://localhost:3000 easily.

Monday, February 7, 2011

Apache on Snow Leopard, "ulimit: open files: cannot modify limit: Invalid argument"

When I started apache on my Snow Leopard i got a weird exception

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


So I opened the script and found that there is something wrong with $ULIMIT_MAX_FILES

The error message says that 'cannot modify limit' so i changed its value to empty string

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


Voila, it works, but deeper investigation need.