Steps to Change the Default Unmask for Apache/PHP

The Apache/PHP umask finds the permission of new created files on the server. Root access is required to vary the umask, that is barely offered on Dedicated hosting plans without Geeky features and a Performance Booster.

Open the following file for changing the umask:

/usr/local/apache/bin/envvars

Inside it, add the below line:

umask 022

With this the default permissions to 022 are going to be set. Restart the Apache service on the server, for the change to require impact.