New folder and file permissions are not correct

Adding these two lines to the wp-config.php file solved the problem:

define('FS_CHMOD_FILE', 0644);
define('FS_CHMOD_DIR', 0755);