Decision:
Do not disable SELinux if you care about security, if the site is accessing the global network at all. In this case, you will want to “Use” SELinux and not disable it, this is not for some reason.
I'm doing it;
# chcon -R -t httpd_sys_script_rw_t /var/www/symfonyapp/app/cache
And yes, @Viataley has one good point, now you need to check that your httpd
, apache
or wwwdata
web server user is added to your user group, regardless of the group your user is in. Thus, when apache writes to the symfony directory that you recompiled with assetic when the cache was launched, for example, the part of g
ugo
, which is your user group, will allow the apache
user to allow the user to contain these products.
And by the way, I mean, how lame is the decision to disable SELinux, without any disclaimer?
source share