error: No space left on device: mod_rewrite: could not create rewrite_log_lock No space left on device: mod_rewrite: could not create rewrite_log_lock


When you see the error: No space left on device: mod_rewrite: could not create rewrite_log_lock No space left on device: mod_rewrite: could not create rewrite_log_lock in your Apache logs or when Apache fails to start, try the following; in your Apache logs or when Apache fails to start.

try the following:

Run:

# ipcs -s

If you see more than 5 of them, you may need to clear them with the following command;

Run:

# ipcs -s | perl -ane ‘/^0x00000000/ && `ipcrm -s $F[1]`’

Restart apache.

Run:

#/etc/init.d/httpd restart

2 Responses to “error: No space left on device: mod_rewrite: could not create rewrite_log_lock No space left on device: mod_rewrite: could not create rewrite_log_lock”

  1. You can also use following command to remove pids.

    ipcs -s | grep nobody | perl -e ‘while () {@a=split(/\s+/); print `ipcrm sem $a[1]`}’

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: