Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Recommended owner and permissions for public html folders?

I've set up a new Linode VPS to create some projects on, and following their guide (listed below), the domain folder is owned by root with permissions set to 750. I thought these were typically owned by the non-root user with permissions set to 755. Is their guide missing some chown and chmod steps?

For reference, Linode's Apache2 / Ubuntu 14.04 instructions (https://www.linode.com/docs/websites/hosting-a-website#configuring-name-based-virtual-hosts) are as follows:

# Disable default virtual host
sudo a2dissite *default

# Create domain folder and sub-folders
cd /var/www
sudo mkdir example.com 
sudo mkdir -p example.com/public_html
sudo mkdir -p example.com/log
sudo mkdir -p example.com/backups

# Create the virtual host file and edit per example provided
sudo nano /etc/apache2/sites-available/example.com.conf

# Enable the website
sudo a2ensite example.com.conf

# Restart Apache2 to apply new configuration
sudo service apache2 restart