[peruser] Permission denied: mod_rewrite

Karsten Schmidt gugge at guggemand.dk
Tue Jul 12 12:30:47 MDT 2005

>>[crit] (13)Permission denied: mod_rewrite: could not init rewrite log 
>>lock in child
> Yeah, I vaguely recall running into this a while back.  It's trying to
> create a file after the setuid and chroot calls are made, and the user
> apache becomes doesn't have access, and/or the directory doesn't exist
> inside the chroot jail.  If you turn off RewriteLog that goes away,
> although you won't have a rewrite log anymore.

it seems RewriteLogLevel 0 isnt enough

i commented out the following in mod_rewrite.c, and mod_rewrite still 
seems to work

     rv = apr_global_mutex_child_init(&rewrite_log_lock, NULL, p);
     if (rv != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s,
                      "mod_rewrite: could not init rewrite log lock in 

Karsten Schmidt

More information about the Peruser mailing list