find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;
Source: http://www.linux-noob.com/forums/index.php?/topic/1144-set-correct-permissions-on-your-apache-files/
Source: http://www.linux-noob.com/forums/index.php?/topic/1144-set-correct-permissions-on-your-apache-files/