I have setup a PhalconPHP project on an AWS EC2 instance. To get thinks working I gave the cache directory
777 permissions. I realise this is bad practice - what would be the correct permissions for a cache directory on a webserver?
I presume it must specific to the user the
httpd service is running as (the output from the method given by the top voted answer to this question implies that the user is
apache). But I obviously want to keep my
ec2-user having write access to the directory (I don't want to have to use
sudo the whole time).
What would be the correct set of permissions for the directory? I have a
www group that
ec2-user is part of, should
apache be added to that?