0

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.

Fredrik
  • 1,741
  • 4
  • 24
  • 40

1 Answers1

0

I've read that it depends on the parent folder rights. Try to changed the rights on the parent folder to your apache user

What also may help: Apache permissions, PHP file create, MKDir fail

Community
  • 1
  • 1
Mitchel Verschoof
  • 1,543
  • 4
  • 20
  • 38