share document root ownership?

Discussion in 'Server Operation' started by qubit, Jun 9, 2009.

  1. qubit

    qubit New Member

    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?

  2. topdog

    topdog Active Member

    dennis:apache should work if your files are set
    chmod g+r
  3. qubit

    qubit New Member

    share document root ownership [solved]

    thank you topdog, it works great!

    we're off to the races...


Share This Page