# Files: 644 find /var/www/example.com -type f -exec chmod 644 {} \; # Directories: 755 find /var/www/example.com -type d -exec chmod 755 {} \; # Example ownership for Apache sudo chown -R www-data:www-data /var/www/example.com Adjust ownership according to the web server and deployment setup used by your system.