Debian Give Write Permissa
sudo chmod -R 757 /var/www
Valley
sudo chmod -R 757 /var/www
chmod +rwx filename #to add permissions.
chmod -rwx directoryname #to remove permissions.
chmod +x filename #to allow executable permissions.
chmod -wx filename #to take out write and executable permissions.