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 havechmod a-w file (removes all writing permissions) chmod o+x file (sets execute permissions for other (public permissions)) chmod u=rx file (Give the owner rx permissions,