Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  Dedicated Server FAQ  >  Steps to Change the Default Unmask for Apache/PHP

Steps to Change the Default Unmask for Apache/PHP

 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:

/usr/local/apache/bin/envvars

Inside it, add the below line:

umask 022

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

Special Offer!
For our Knowledge Base visitors only
Get 10% OFF! on Premium Hosting
Offer Valid till:
59
MINS
59
SECS
STORYSAVER
Claim Your Discount
No thanks, I'll pass
Note: Copy the coupon code and apply it on checkout.