I have set default ACL to allow me doing anything on newly written files. But Apache seems to ignore that, and I don't have access to newly created files. How to fix that?
If you are meaning the permissions that are controlled by chmod/grp/own, then try using sudo with su ang sg to become that user
Once you have done that, try to use cat to read those files, if that works you are done!
to fix this scenario
Otherwise, if you are talking about the extfs acls, which can be seen by files having a + in their ls record
this one can be dealt with like the following
If you are taliking about selinux, you will need to change the default context of location where the files are created, this MUST be done as root!
that will affect future files, to affect the current ones, use this
I Hope that clears it up,
I would apreciate a post of the error log for apache, and an ls -all of the directory in question, as well as any audit logs (in /var/log/audit/audit.log) that appear about the same time and were denied
I am leaving the other answer as it is valid for another question!
First you need to change the umask that Apache is running under
this will cause the files that apache creates to be chmod'd 660 (noexec is a good idea)
and then add yourself to the apache group