I set folders to 755 and files to 644. If you are using Joomla its best set the configuration file to 444.

if you have access to a unix shell you can use these commands to automatically all the permissions:

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 444 configuration.php