Dear Digital Ocean
I just read through this site, which is still high up on the first page of google results, but seriously contains something you should wanna change. The page is this one: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04 (yes it’s old but still valid and as it’s high up on google, it’s just wrong information and important to adjust)
The change to make there is about the file and folder permissions inside /var/www/html at two lines looking like this: sudo chown -R $USER:$USER /var/www/html/somedirectory
You say to change the owner and group to the username which is really stupid. You should add the current user to the www-data group instead! Otherwise it’s simply wrong and damaging a lot of applications that will simply not run if the files and folders belong to the user, there’s a reason for the www-data user and group!!! Please adjust the page, or remove it.
Thanks Oli Gerber
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!