File Permissions
General
These are the default permissions for all files on CMS, Forums etc (Joomla, Wordpress, phpMyAdmin, myBB, etc)
Directories
find . -type d -exec chmod 755 {} \;
Files
find . -type f -exec chmod 644 {} \;
Application Specific
Joomla
chmod 644 configuration.php
MyBB
chmod 666 inc/config.php inc/settings.php chmod 777 cache/ cache/themes/ uploads/ uploads/avatars/