Knowledge Base
MilesWeb / Dedicated Server FAQ

Steps to Change the Default Unmask for Apache/PHP

Approx. read time : 1 min

The Apache/PHP umask finds the permission of newly created files on the server. Root access is needed to change the umask, which is only available on Dedicated hosting plans without Geeky features and a Performance Booster.

For changing the umask, open the following file:

Inside it, add the below line:

With this the default permissions to 022 will be set. Restart the Apache service on the server, for the change to take effect.

Also Read:
Learn to Restart Apache on Dedicated Server

Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.