How to set umask for php-fpm in Fedora

Here's how I finally did it, in case this helps someone:

Create the file

/etc/systemd/system/php5-fpm.service.d/php5-fpm.service.conf

(it must end in .conf) with the content:

.include /lib/systemd/system/php5-fpm.service

[Service]
UMask=0002

Then run

 systemctl daemon-reload
 systemctl restart php5-fpm

Just run: systemctl edit unit.service. This will create override.conf for service. Inside add: [Service] UMask=0002

And reenable service: systemctl reenable unit.service In your case unit.service is httpd.service