My server insists on 755 permissions on all directories and their contents, except “config” and “tmp”, instead of the more usual 744. The extra “1” means “Execute”.
The “config” directory and its contents needs 777. The contents of the “tmp” directory need 755, while the “tmp” directory itself needs 777.