You are not logged in.

#1 2013-12-17 23:38:17

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

umask for env vars for apache

how to i set a umask 0002 for apache so that i can get it permission to write to cache directory inside my home directory?  each time i clear the cache in symfony2 framework, theres problems, i have used setfacl to no avail either

setfacl -R -m u:http:rwX -m u:myuser:rwX app/logs

now im trying umask to see if that helps.  each time i chown the directory, when the files get recreated they get set to 755, and since the groups is 'user' and not 'http' apache loses write access.

i was going to try something like this http://stackoverflow.com/questions/4284 … pache-user

scroll down to "Steting up permissions" on this page to see whats going on here http://symfony.com/doc/current/book/installation.html

if anybody sees the solution here, please do tell..... 

thanks


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

#2 2013-12-21 04:55:32

mrinx
Member
From: Richmond, VA
Registered: 2013-08-01
Posts: 87
Website

Re: umask for env vars for apache

If I understand correctly, ACLs are set for directories that will get deleted during cache cleaning, so they will get purged as well. Also according to http://symfony.com/doc/current/book/installation.html you don't have to set umask in apache, but in some php files, just check the part about "Without using ACL" at the same webpage.


English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?

Offline

#3 2014-01-06 18:45:48

wolfdogg
Member
From: Portland, OR, USA
Registered: 2011-05-21
Posts: 545

Re: umask for env vars for apache

thanks for pointing this out, about the part of not having to set umask in apache, i did read that long before i got too deep, and it looks like it might work.  ill see how far i can get adding those to the config.  maybe thats what im missing!  hopeful..


Node.js, PHP Software Architect and Engineer (Full-Stack/DevOps)
GitHub  | LinkedIn

Offline

Board footer

Powered by FluxBB