View Single Post
Old 10th December 2007, 00:52
DonQuichote DonQuichote is offline
Junior Member
Join Date: Oct 2007
Location: The Netherlands
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by mtaylor314
My problem is I need root privileges to edit anything under /var/www, which I prefer not to edit things with those privileges, and if I set my DocumentRoot to a directory in my user's folder, firefox says I don't have access to view "/". What is the best way to develop web sites with this set up?
Apache runs the php files as a certain user (could be called "apache", depending on your setup). That user needs to be able to read the php files. Off course, you will need write permission. With this information, you can set the rights for any directory under /var/www

the user "apache" (or whatever it is called) has a default group as well. If you make yourself member of that group, you can make every file user-writeable and group-readable and change the group ownership to that group.
Reply With Quote