PDA

View Full Version : share document root ownership?


qubit
10th June 2009, 00:55
someone may have already explained this, and i have searched for a solution, but get confused. (linux noob)

i have fedora 10 & apache 2 installed.
document root is /var/www/html.

all the folders/files under /var/www are owned by root:root.

i would like to be able to edit the html files under my username 'dennis', but cannot with the current ownership.

i changed owner to dennis:apache and could then edit/save the files, but the <?php.........?> will not parse/process. if i change the ownership back to apache:apache or root:root then it works fine.

how can i edit the files under my username and still have the php code work?

.d

topdog
10th June 2009, 10:29
dennis:apache should work if your files are set chmod g+r

qubit
14th June 2009, 16:55
thank you topdog, it works great!

we're off to the races...

.q