find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 660 wp-config.php
chmod 664 .htaccess
find wp-content -type d -exec chmod 775 {} \;
find wp-content -type f -exec chmod 664 {} \;
find . -exec chown
chgrp
chgrp
find . wp-content -exec chgrp