SuiteCrm Default File Permission

Hi,

My running SuiteCRM version is 7.5.2. I try to deploy custom module build from module builder, somehow, i find the file and folder being automatically created by apache user, they are always set to default file permission 644. I try to change default permission in config.php for such as following

‘default_permissions’=>
array(
‘dir_mode’=>1535,
‘file_mode’=>432,
‘user’=>‘www-data’,
‘group’=>‘www-data’,
),

the folder create has set to default permission 777, but the file inside folder is always set default file permission 644 instead 660 after i have try to redeploy the custom module via module builder.

Thanks

We use these settings:

dir_mode = 1517 and file_mode = 420

sudo chown -R www-data:www-data .
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload config_override.php