Add the following code snippet to your wp-config.php file to override your server settings.

Change file permissions for files

define( 'FS_CHMOD_FILE', 0644 );

Change folder permissions

define( 'FS_CHMOD_DIR', 0755 );

The numbers in this code example, 0644 and 0755, are in CHMOD syntax.