What is the equivalent for 'www-data' for CentOs?

94,389

Solution 1

There is apache user instead of www-data in Centos.

Solution 2

you can run sudo chgrp -R apache YOUR_FOLDER

Share:
94,389

Related videos on Youtube

freja
Author by

freja

Updated on September 18, 2022

Comments

  • freja
    freja almost 2 years

    CentOs doesn't recognise www-data but want to change ownership on my files folder. All my folders are owned by root at the moment. Confused as to what should be owned by apache and what she be owned by me the root user? Also when it says root root does that mean root user me and group apache root?

  • freja
    freja over 11 years
    is root same as apache?
  • rush
    rush over 11 years
    nope. they're different users. data should be owned by apache to be able to modify them via your web scripts.
  • Atul Vekariya
    Atul Vekariya almost 7 years
    This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review
  • Hauke Laging
    Hauke Laging almost 7 years
    @RomeoNinov This may be a wrong answer but it does try to answer the question. In any case it is not a comment posted as an answer due to a lack of rep. How did this comment get an upvote...