Silverstripe Version: 4.2.2
I’m stuck on this one. Any help much appreciated. How do I correctly set permissions so that I can ?flush via a browser AND also run tests. For the following files:
If I set the owner to _www then I can ?flush in the browser, but I can’t run tests. I get the CLI error:
PHP Warning: file_put_contents(/public/assets/.htaccess): failed to open stream: Permission denied in vendor/league/flysystem/src/Adapter/Local.php on line 135
If I then set the owner to my use, I can run tests but I can’t ?flush. I get the browser error:
# [WARNING] CHMOD(): OPERATION NOT PERMITTED Line **356** in **/vendor/league/flysystem/src/Adapter/Local.php** * **chmod(/public/assets/.htaccess, 436)** Local.php:356
What do I need to do to allow me to ?flush and also be able to run my tests?