How to give permission to user to read/write files/folders in /var/www ?
Steps to get the access are as follows:Open the terminal and run following commands on your terminal and replace USERNAME from your systems USERNAME
- sudo chgrp USERNAME /var/www
- sudo chmod 775 /var/www
- sudo chown -R USERNAME /var/www/*
After running this commands just log out and log in again and you will be able to access the /var/www/ as normal with some special permissions.
Enjoy learning :)