I just installed Grav and I'm currently learning from the Grav documentation and playing with creating folders/files. I have the exact same problem as mentioned in this old post: /forum/plugins/administration-panel-vs-the-cli-permissions-t9252
I'm not a power-user of command line, so I don't know how to fix this.
Can someone give some help ?
I'm on Debian 12 by the way.
I'm currently using the Apache server only locally.
I saw this in the documentation :
PHP/Webserver runs with different accounts but same Group
By using a shared Group between your user and PHP/Webserver account with
775and664permissions you ensure that even though you have two different accounts, both will have Read/Write access to the files. You should also probably set aumask 0002on the root so that new files are created with the proper permissions.
I dit "umask 0002" but nothing changes, and I'm not sure how to set the right permissions. Maybe I'll need to use the script, but I'd rather understand how to do it the right way, the script looks like a workaround, doesn't it ?
I also tried to change Apaches user variables as follow :
export APACHE_RUN_USER=newuser
export APACHE_RUN_GROUP=newuser
And then
chown --recursive newuser:www-data /var/www/my_website
But it won't solve the problem