Grant Permissions

We need to grant ownership of the directory to the user, instead of just keeping it on the root system.

 sudo chown -R $USER:$USER /var/www/

Additionally, it is important to make sure that everyone will be able to read our new files.

 sudo chmod -R 755 /var/www

Leave a Reply

Your email address will not be published. Required fields are marked *