SuiteCrm Default File Permission


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


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.


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