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