crowell / modpagespeed_tmp

Automatically exported from code.google.com/p/modpagespeed
Apache License 2.0
0 stars 0 forks source link

Insufficient privlages for console log file default location #559

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The default location for the statistics file used by the console is set to 
/var/log/mod_pagepseed_stats.log. We typically don't have sufficient privileges 
to write to /var/log. This can be tested by running 
apache_debug_stats_logging_test from an open source checkout and observing it 
fail with a message like:
grep: /var/log/mod_pagespeed_stats.log*: No such file or directory

Original issue reported on code.google.com by j...@google.com on 7 Nov 2012 at 11:34

GoogleCodeExporter commented 9 years ago
I assume this was setup to mirror:

MOD_PAGESPEED_CACHE = /var/cache/mod_pagespeed

Do we have more access to /var/cache than to /var/log? Or are we creating 
/var/cache/mod_pagespeed with root privileges at install time and need to do 
the same for /var/log/mod_pagespeed_stats.log (perhaps rename to 
/var/log/mod_pagespeed/stats.log for consistency)?

Original comment by sligocki@google.com on 8 Nov 2012 at 3:31

GoogleCodeExporter commented 9 years ago
/var/cache/mod_pagespeed looks like it gets owned by the apache user, although 
I didn't dig in to see where the release process this actually gets done.

I've commented apache_debug_stats_logging_test out in the 
apache_vm_system_tests - it should be reenabled once this issue is resolved.

Original comment by j...@google.com on 8 Nov 2012 at 4:15

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r3187.

Original comment by sligocki@google.com on 20 Jun 2013 at 10:28

GoogleCodeExporter commented 9 years ago

Original comment by sligocki@google.com on 24 Jun 2013 at 2:05