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

Today I updated to MacOSX Snow Leopard (10.6.6) and found out my apachectl script was not working anymore

This error suddenly came in:

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

After examined the problem, here is the cure

1. Open Terminal
2. $sudo nano /usr/sbin/apachectl
3. Go to line 82
ULIMIT_MAX_FILES=”ulimit -S -n `ulimit -H -n`”
and change to
ULIMIT_MAX_FILES=”"
4. Ctrl+X and save the file.
5. Done.

Related posts:

Share

About number.0