1

chmod a+w storage/logs/laravel.log

This command makes file writable.

So why I cannot edit the file after runnign this command ? No errors were given after running.

Tried also with -R on logs folder.

WHat is happenign with the software, why nothiing works?

Comments
  • 0
    oh weirrd, turns out this file is writabel, other program can write it but phpstorm still cant. wtf
  • 0
    maybe the programs got exclusive access to the file?
  • 0
    @stop why should they?
  • 2
    @Angry-dev to ensure that an logentry is written without disturbances?
  • 1
    Are you perhaps running Phpstorm as something different from the plain binary?
    Some stuff (like snaps) protect files.
  • 0
    @PrivateGER I cheked the link which I click to run phpstorm:

    "/home/[myname]/Program_files/PhpStorm-183.5912.26/bin/phpstorm.sh" %f
  • 1
    Check file owner and user group.
  • 0
    @0xsuid file laravel.log owner and group is the user which I use to login to xubuntu
  • 0
    @Angry-dev does it work while Laravel is offline?
  • 0
    @Hazarth you mean when server is not started? I still is read only when I try with phpstorm
  • 0
    @Angry-dev well ok, what what are the permissions of the file. Copy paste the entire permission state or number and if possible the owner of the file too
  • 0
    @Hazarth
    ls -l storage/logs/
    total 280
    -rw-rw-rw- 1 anon anon 273807 rugp. 30 19:41 laravel.log

    I have changed the names to remain anonimous
  • 0
    @Angry-dev ok that's weird...

    the only thing that comes to mind is that the file is open somewhere else by something else that stops you from writing into it... but I honestly I'm not sure at this point
  • 0
    @Hazarth ok, its not a big deal that I cannot edit it :)
Add Comment