lp0411
asked on
File Permision for PHP errors log
I have a server hosted by rackspace cloud and I'm trying to get it set up for my web site. I was trying to capture my php error messages in a log file but I've had to give write access to the world in order to get it to work. I don't want to give write access to the world for my log file. How do I make it so it is set up only for root and still have apache able to write to it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Second way is to give the file apache group so you would access through group apache.
1. Become root
2. chgrp apache /log/file/name
3. chmod 770 /log/file/name
What is the group of apache? Is it apache or httpd
1. Become root
2. chgrp apache /log/file/name
3. chmod 770 /log/file/name
What is the group of apache? Is it apache or httpd
Please issue the following command:
chmod 770 /log/file/name
setfacl -m u:apache:rwx /log/file/name
If the Apache user is name is httpd, please issue this
setfacl -m u:httpd:rwx /log/file/name