Find the answer to your Linux question:
Results 1 to 4 of 4
I've set up a home http server on my old laptop - Centos 5.2. I'm using joomla for content management. My question is what permission should I set for the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Feb 2009
    Posts
    104

    /var/www/html/ permissions and users


    I've set up a home http server on my old laptop - Centos 5.2. I'm using joomla for content management. My question is what permission should I set for the files/folders in my joomla directory. I mean I read that for files 644 and directories 755 should by enough. Also, who should own all those files/directories - shall I keep them as owned as root or shall I create a separate user for administering the website/apache and chown them to the new user?
    thanks in advance

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    644 is fine for files with static content (html) but script files such as php need to be executable as well, you should use 755 for those as well.

  3. #3
    Just Joined! deakons's Avatar
    Join Date
    Mar 2009
    Location
    New York
    Posts
    16
    Quote Originally Posted by portia View Post
    Also, who should own all those files/directories - shall I keep them as owned as root or shall I create a separate user for administering the website/apache and chown them to the new user?
    thanks in advance
    If you have multiple users on your machine you should change ownership to the user that handles website administration. If you are using Apache httpd you may already have a user created for this task.

    Code:
    egrep "^User|^Group" /pathto/httpd.conf

  4. #4
    Linux Newbie
    Join Date
    Feb 2009
    Posts
    104
    Ok thanks guys. It was helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •