New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default permissions are troublesome in /tmp #3166
Comments
The files should be owned by your web user and have chmod 755 so that automatic update works and you don't need to run any command. Does the auto update work andreplaces all files and then you get this message? |
I'm unable to use auto-update, when I try, I get the following: "There is a new version of Piwik available for update Piwik is unable to overwrite your current installation. You can either fix the directory/file permissions, or download the package and install version 1.8.1 manually: " ...but again, that's probably a host issue I assume we can do nothing about. Certainly something for a different ticket. But back to this---when I install a new piwik installation from git clone git://github.com/piwik/piwik.git I notice there is no tmp/ folder at all---I always have to create one and chmod it myself, and that seems to be the problem, I assume if /tmp were a part of the installation, with the web user as owner and 755 permissions, it would work OK? |
Replying to mittenchops:
It looks like downloading latest.zip does have the /tmp directory that the git repo does not have. And the permissions are... drwxr-xr-x which I believe is 755. But the subdirectories templates/ cache/ assets/ and tcpdf/ do not exist, and neither the user nor the group is 'web' or 'www-data', but instead is the same numbered owner as all the other directories. |
They should be created automatically you just need give WRITE access to /tmp/ and piwik will create automatically |
Can this be addressed so that the tmp folder has the correct permissions and owner upon creation, instead of something the user has to do manually? |
a new FAQ was published to hopefully summarise the solutions: How do I fix the errors “Unable to write in the cache directory” or “The directory matomo/tmp/cache/*” is not writable.”?. |
Since version 1.2 or so, I've experienced permission problems that keep me from using the automatic update feature. I assume this is due to some setting my host has in place.
To update, I download the zip file, then copy my config over. However, after I set this up, I always have a permission problem, and get a screen something like the following:
Then I try to chmod these, but don't have sufficient permissions on my server---so every time I update, I need to email my host and ask to have these files repermissioned to the web user. I don't know who the default current owner is, but having a default that requires I contact my host does make updating slow and arduous.
Is there any way these files can be permissioned to the correct owner by default, with whatever permissions they need to function correctly?
Keywords: permissions, install
The text was updated successfully, but these errors were encountered: