chmod 777chmod 777 makes a filefolder readable, write-able and executable by everyone. So essentially on your site folder, you have given everyone permission to write to that folder, so you haveTo apply chmod 777 recursively to a folder and all its contents, you can use the -R