Apache2 rewrite_log_lock

This is a discussion on Apache2 rewrite_log_lock within the Apache forums in Application Servers & Tools category; Hi, Any help is really appreciated. If you need more info to help with my problem, please ask. I have mac os x installed on a mac mini. It came with Apache 1.3 pre-installed. I installed Apache2 (after running 1.3 for over a year). I used http://www.serverlogistics.com/apache2.php When i attempt to start apache, i get the following in the access log: crit <http://discussions.apple.com/> (14)Bad address: mod_rewrite: Could not set permissions on rewrite_log_lock; check User and Group directives Configuration Failed I have the user and group directives set correctly in httpd.conf (an Administrative user - the same as i had them ...

Go Back   Application Development Forum > Application Servers & Tools > Apache

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-26-2008, 12:20 PM
Sam Wootton
Guest
 
Default Apache2 rewrite_log_lock

Hi,

Any help is really appreciated. If you need more info to help with my
problem, please ask.

I have mac os x installed on a mac mini. It came with Apache 1.3
pre-installed.

I installed Apache2 (after running 1.3 for over a year). I used
http://www.serverlogistics.com/apache2.php

When i attempt to start apache, i get the following in the access log:

crit <http://discussions.apple.com/> (14)Bad address: mod_rewrite: Could not
set permissions on rewrite_log_lock; check User and Group directives
Configuration Failed

I have the user and group directives set correctly in httpd.conf (an
Administrative user - the same as i had them in apache 1.3). I have also
tried setting:

RewriteLog "/Library/Apache2/logs/rewrite.log"
RewriteLogLevel 0

I simply cannot get Apache 2 to work on mac os x, version:

Darwin 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007;
root:xnu-792.25.20~1/RELEASE_I386 i386 i386

Regards, Sam Wootton

Reply With Quote
  #2  
Old 08-26-2008, 07:44 PM
Ron Savage
Guest
 
Default Re: Apache2 rewrite_log_lock

Hi Sam


> When i attempt to start apache, i get the following in the access log:
>
> crit (14)Bad address: mod_rewrite: Could not set permissions on
> rewrite_log_lock; check User and Group directives Configuration Failed
>
> I have the user and group directives set correctly in httpd.conf (an
> Administrative user - the same as i had them in apache 1.3). I have
> also tried setting:
>
> RewriteLog "/Library/Apache2/logs/
> rewrite.log"
> RewriteLogLevel 0


Did you check the permissions on /all/ directories in that path?

--
Ron Savage
ron@savage.net.au
http://savage.net.au/index.html



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
  #3  
Old 08-27-2008, 04:30 AM
Sam Wootton
Guest
 
Default Re: Apache2 rewrite_log_lock

Hi,

Thank you for the reply, much appreciated.

The permissions in the /apache/logs directory are all

-rw-rw-r--

however, in my attempt (temporarily) to get things working, i did chmod 777
on all directories - and this still didn't work (i got the rewrite lock
error still).

The reason why i am losing my patience with this problem, is that the error
msg appears fairly self explanatory (in that apache appears not to have the
correct permissions), but i cannot fix it.

Regards, Sam Wootton

2008/8/27 Ron Savage <ron@savage.net.au>

> Hi Sam
>
>
> > When i attempt to start apache, i get the following in the access log:
> >
> > crit (14)Bad address: mod_rewrite: Could not set permissions on
> > rewrite_log_lock; check User and Group directives Configuration Failed
> >
> > I have the user and group directives set correctly in httpd.conf (an
> > Administrative user - the same as i had them in apache 1.3). I have
> > also tried setting:
> >
> > RewriteLog "/Library/Apache2/logs/
> > rewrite.log"
> > RewriteLogLevel 0

>
> Did you check the permissions on /all/ directories in that path?
>
> --
> Ron Savage
> ron@savage.net.au
> http://savage.net.au/index.html
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


Reply With Quote
  #4  
Old 08-27-2008, 05:17 AM
WhoAmI
Guest
 
Default Re: Apache2 rewrite_log_lock


Hi,

is the owner of that directories the same user thet you have set in "User"
and "Group" (apache2.conf)?


On Wed, 27 Aug 2008 09:30:45 +0100, "Sam Wootton" <sam.wootton@gmail.com>
wrote:
> Hi,
>
> Thank you for the reply, much appreciated.
>
> The permissions in the /apache/logs directory are all
>
> -rw-rw-r--
>
> however, in my attempt (temporarily) to get things working, i did chmod
> 777
> on all directories - and this still didn't work (i got the rewrite lock
> error still).
>
> The reason why i am losing my patience with this problem, is that the
> error
> msg appears fairly self explanatory (in that apache appears not to have
> the
> correct permissions), but i cannot fix it.
>
> Regards, Sam Wootton
>
> 2008/8/27 Ron Savage <ron@savage.net.au>
>
>> Hi Sam
>>
>>
>> > When i attempt to start apache, i get the following in the access log:
>> >
>> > crit (14)Bad address: mod_rewrite: Could not set permissions on
>> > rewrite_log_lock; check User and Group directives Configuration Failed
>> >
>> > I have the user and group directives set correctly in httpd.conf (an
>> > Administrative user - the same as i had them in apache 1.3). I have
>> > also tried setting:
>> >
>> > RewriteLog "/Library/Apache2/logs/
>> > rewrite.log"
>> > RewriteLogLevel 0

>>
>> Did you check the permissions on /all/ directories in that path?
>>
>> --
>> Ron Savage
>> ron@savage.net.au
>> http://savage.net.au/index.html
>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server

> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>

--
-WhoAmI-

Email: whoami@autistici.org
WebSite: http://www.autistici.org/whoami/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
  #5  
Old 08-27-2008, 05:26 AM
Sam Wootton
Guest
 
Default Re: Apache2 rewrite_log_lock

Hi,

Yeap, in the conf/httpd.conf, i have:

User snapple
Group admin

This is the gourp i had in my old apache 1.3 set up.

This is my admin user for my machine, and the user i used when isntalling
apache2.

This is the odd thing, its all the same set up as my old apache, fairly
simple stuff - just doesn't work. I am worried its darwin kernal / apache2
compatibility problem - but have been reassured on a few forums that these
two do work together and its definitely a problem with my apache2
configuration.

Thank you for your help / advice.

Regards, Sam

2008/8/27 WhoAmI <whoami@autistici.org>

>
> Hi,
>
> is the owner of that directories the same user thet you have set in "User"
> and "Group" (apache2.conf)?
>
>
> On Wed, 27 Aug 2008 09:30:45 +0100, "Sam Wootton" <sam.wootton@gmail.com>
> wrote:
> > Hi,
> >
> > Thank you for the reply, much appreciated.
> >
> > The permissions in the /apache/logs directory are all
> >
> > -rw-rw-r--
> >
> > however, in my attempt (temporarily) to get things working, i did chmod
> > 777
> > on all directories - and this still didn't work (i got the rewrite lock
> > error still).
> >
> > The reason why i am losing my patience with this problem, is that the
> > error
> > msg appears fairly self explanatory (in that apache appears not to have
> > the
> > correct permissions), but i cannot fix it.
> >
> > Regards, Sam Wootton
> >
> > 2008/8/27 Ron Savage <ron@savage.net.au>
> >
> >> Hi Sam
> >>
> >>
> >> > When i attempt to start apache, i get the following in the access log:
> >> >
> >> > crit (14)Bad address: mod_rewrite: Could not set permissions on
> >> > rewrite_log_lock; check User and Group directives Configuration Failed
> >> >
> >> > I have the user and group directives set correctly in httpd.conf (an
> >> > Administrative user - the same as i had them in apache 1.3). I have
> >> > also tried setting:
> >> >
> >> > RewriteLog "/Library/Apache2/logs/
> >> > rewrite.log"
> >> > RewriteLogLevel 0
> >>
> >> Did you check the permissions on /all/ directories in that path?
> >>
> >> --
> >> Ron Savage
> >> ron@savage.net.au
> >> http://savage.net.au/index.html
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP Server

> > Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> " from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>

> --
> -WhoAmI-
>
> Email: whoami@autistici.org
> WebSite: http://www.autistici.org/whoami/
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


Reply With Quote
  #6  
Old 08-27-2008, 07:56 PM
Ron Savage
Guest
 
Default Re: Apache2 rewrite_log_lock

Hi Sam


> The permissions in the /apache/logs directory are all


Lower case A? No 2?

See below.

> -rw-rw-r--
>
> however, in my attempt (temporarily) to get things working, i did
> chmod 777 on all directories - and this still didn't work (i got the
> rewrite lock error still).

[snip]

> >
> > RewriteLog "/Library/Apache2/logs/


/Library? Upper case A? 2?

> > rewrite.log"
> > RewriteLogLevel 0


>From the docs, http://127.0.0.1/manual/mod/mod_rewrite.html#rewritelog

it says: 'The RewriteLog directive sets the name of the file...'

So
1) It's a file name not a dir name
2) Ensure all components of the path are meaningful
3) Patch httpd.conf and restart the server

--
Ron Savage
ron@savage.net.au
http://savage.net.au/index.html



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:23 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.