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 wp-config.php
chgrp .htaccess
find . wp-content -exec chgrp {} \;