find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
These two commands recursively changes the permissions of the files to 644 [r-w-r-r] and for folders 755 [rwx-r-x-r-x] which are required for the correct working of domain in the public_html folder.