I have an Amazon EC2 server running Redhat. When my PHP CMS creates files they are owned by www-user and has chmod 644. How can I make all files created by Apache and PHP default to 666?
I've already tried adding "umask 002" in /etc/init.d/httpd but it doesn't seem to work.
Many thanks.