Thursday, October 11, 2018

linux - Giving Apache2 write access to a user directory

I want to give Apache2 write access to a directory in a users home directory so it can write logs etc.



The idea is that I add Apache2 to the users group:




sudo usermod -aG vagrant www-data


And then I simply give the directory to which I want Apache2 to be able to write "group" write and execute permissions:



chmod g+wx ./logs


However, this does not seem to work.




How do I add Apache2 to a users group and set the permissions correctly for write access?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...