Notfornoone
Yes, its a double negative.





Snow Leopard 10.6.5 and apachectl: A Quick Fix

If you've recently upgraded to Snow Leopard 10.6.5 and noticed that apachectl is acting up, you're not alone. There's a simple solution to get it working smoothly again.

When running apachectl after the upgrade, you might have encountered this frustrating error message:

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

The root of the issue appears to be in the ULIMIT variable within the shell script:

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

The problem arises because ulimit sometimes returns "unlimited," which cannot be used in the command `ulimit -S -n`. To resolve this, follow these steps:

1. Open the Terminal.

2. Type the following command and press Enter:

```
sudo nano /usr/sbin/apachectl
```

This command opens the apachectl file in the Nano text editor with superuser privileges.

3. Locate the ULIMIT_MAX_FILES line. It should look like this:

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

4. Modify the line to appear as follows:

```
ULIMIT_MAX_FILES=""
```

5. Press Ctrl+O, then press Enter to save the changes. Next, press Ctrl+X to exit Nano.

6. Now, try running apachectl again. It should work without any issues.

This quick fix should get your apachectl back to normal and allow you to continue using it effectively. If you encounter any further problems or have questions, don't hesitate to ask for assistance.