Issue with public access to web server
So, I am not use to setting up a web server so i’m sure there is an easy explanation for this that I don’t know.
Basically, anytime I upload a new file via ftp, the www-data user can not view it until I do
chmod -R 775 /var/www
I have to do this every single time when I upload a file, is there anyway to make it so that they can read any file uploaded in this directory?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×