#Setting permission to all directories and subdirectories to 755
find /var/www -type d -print0 | xargs -0 chmod 755
#Setting permission to all files in subdirectories to 644
find /var/www -type f -print0 | xargs -0 chmod 644
#Setting permission to all directories and subdirectories to 755
find /var/www -type d -print0 | xargs -0 chmod 755
#Setting permission to all files in subdirectories to 644
find /var/www -type f -print0 | xargs -0 chmod 644