biber Posted September 9 Posted September 9 When I try to delete the entries in a logfile by the "burn"-function (Helpers at the log-page), nothing happens. If I use the "chop"-funktion, I get the following error: Unable to open file for writing: /home/sites/site100043347/web/malabu.de/site/assets/logs/file-compiler.txt.new Rights are set to 755 to the Logs-directory and to 644 to the files inside.
bernhard Posted September 10 Posted September 10 On 9/9/2025 at 1:04 PM, biber said: 644 This means that only the owner of the file can write to it. Does it have the correct owner? 1
biber Posted September 10 Author Posted September 10 Hi@bernhard, thanks for your hint. I played around a little with the permissios and found: the logs-directory needs 775, the files stay at 644. Now everything is fine.
bernhard Posted September 10 Posted September 10 The logs directory definitely does NOT need 775. See https://processwire.com/docs/security/file-permissions/#permission-755-for-directories-and-644-for-files 755 is the least restrictive recommendation and as ryan notes if it can be locked down further its recommended to do so. If it only works for you with 775 that's a good and a bad news: good: you know that permissions are the issue bad: you should fix it properly to make it work with 755 ...which should be the case if the webserver runs as the same user that owns the directory and log files. You might want to talk to your hosting company if you are not hosting it yourself. 1
biber Posted September 11 Author Posted September 11 Hi @bernhard, I tried again to change the permissions, but had the same issue with 755. So I set it back to 775 and live with that. This is also recommended by the web host.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now