I use standard stack logging and created files has wrong owner. I need to have www-data owner, but files has root owner. How can I fix this? Laravel version is 5.8 under Apache2+Php.
Question posted in PHP Versions
You can find a list of all versions here.
You can find a list of all versions here.
2
Answers
Answer was simple. I changed owner of all directories to www-data. I do it early , but not for all directories.
Edit the following file as root:
/etc/apache2/envvars
using the command:
change the user and group to yourself if there is only one user and you will never have permissions problems again.
I.E., if you are only logging in and running the server as user ‘your_username’:
Restart the server (if unsure, just reboot) and you are good to go.