Every time I create a new file from eclipse, I need to run these two lines of code to get the r/w permission:chmod -R 775 /var/www/folder/filename.extensionAnd/Orsudo chown -R www-data:www-data /var/wwwAnd, If I copy some files over that server folder, and access it from browser URL like :localhost/folder/filename.extensionI get a Permission error by Apache Server.Isn't there any way so that I can get rid of this problem?*Note: The main error occurs when my move_uploaded_file() function tries to move the file to /var/www/MyProject/ directory.
User permissions problem Linux
files;permissions;group