I am quite new to ubuntu and I have been trying to install BuilderEngine a content management system to my ubuntu server 12.04 lts I have figured some things out but I am stuggling with permission for files and folders. I know I have change the permission for folders and files in /var/www/ to be able to read and write files. But I am not sure what to do.
All I know is never use chmod -R 777 /var/www/ cause that can read/write/excute files.
Was thinking of trying sudo chown -R www-data:www-data /var/www/ but not sure