giving permission chmod 777 to file code example Example: ubuntu change permissions 777 sudo chmod -R 777 /var/www