Ticket #1654 (closed Bug: invalid)
File permissions in PHP Apache mode
| Reported by: | philmck | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Piwik 1.0 |
| Component: | Core | Keywords: | |
| Cc: | Sensitive: | no |
Description
When installed on a server that runs PHP in "Apache" mode (rather than "CGI" mode), temporary files created by Piwik (e.g. in /tmp/sessions) are created with default permissions of 600, which means they can't be subsequently written or modified by Piwik. They need permisions of at least 606 on this sort of server - i.e., publicly writeable.
This is such an obvious problem I can't believe it hasn't been reported, yet I haven't been able to find it (humble apologies therefore if it's a duplicate). Piwik is so close to being an excellent utility, and so close to v1.0 now it seems a pity to let this go.
The workaround implemented by my hosting company is to set up a cron job to periodically CHMOD all files in /tmp to be writeable, but this is a but of a kludge.
