Jump to content

[solved] Cannot delete logfile-entries


biber
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • biber changed the title to [solved] Cannot delete logfile-entries

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...