I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
I cannot find where to set umask (to set proper permissions to files created by php scripts) in Fedora 19. (specifically, I want new files to have the permissions 664)
Here's how I finally did it, in case this helps someone:
Create the file
(it must end in
.conf
) with the content:Then run
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.serviceif you have a systemd service on CentOs7 you need to stop the service and enable it again to have it fixed
Add this:
Save the file with esc ZZ. Enable and start apache again:
Then the funny part is that i have chmod 774 and not 770 mmm