Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. Setting the Correct File Owner

Setting the Correct File Owner

Scheduled Pinned Locked Moved Solved LAMP
10 Posts 5 Posters 3.2k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • humptydumptyH Offline
    humptydumptyH Offline
    humptydumpty
    wrote on last edited by
    #1

    The doc page says that for Apache+PHP apps, permissions should be "www-data.www-data". Is that a typo? If not, how do I make the change?

    What should the owner be for:

    • folders
    • subfolders
    • files
    • htaccess
    • index.php

    Thanks!

    murgeroM micmcM 2 Replies Last reply
    1
    • humptydumptyH humptydumpty

      The doc page says that for Apache+PHP apps, permissions should be "www-data.www-data". Is that a typo? If not, how do I make the change?

      What should the owner be for:

      • folders
      • subfolders
      • files
      • htaccess
      • index.php

      Thanks!

      murgeroM Offline
      murgeroM Offline
      murgero
      App Dev
      wrote on last edited by murgero
      #2

      @humptydumpty chown -R www-data:www-data /app/data/public will make the whole public folder owned by apache.

      Change /app/data/public to a file or folder of choice.

      --
      https://urgero.org
      ~ Professional Nerd. Freelance Programmer. ~

      1 Reply Last reply
      1
      • humptydumptyH humptydumpty

        The doc page says that for Apache+PHP apps, permissions should be "www-data.www-data". Is that a typo? If not, how do I make the change?

        What should the owner be for:

        • folders
        • subfolders
        • files
        • htaccess
        • index.php

        Thanks!

        micmcM Offline
        micmcM Offline
        micmc
        wrote on last edited by
        #3

        @humptydumpty said in Setting the Correct File Owner:

        "www-data.www-data". Is that a typo?

        A typo with the separator which should be : and not a . as in

        www-data:www-data
        

        @murgero has provided the right command here above.

        AI Intelligencia RED PILL Podcast
        (coming soon...)

        1 Reply Last reply
        1
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          Thanks for letting us know about that typo. I have fixed it now in the docs.

          humptydumptyH 1 Reply Last reply
          2
          • nebulonN nebulon

            Thanks for letting us know about that typo. I have fixed it now in the docs.

            humptydumptyH Offline
            humptydumptyH Offline
            humptydumpty
            wrote on last edited by
            #5

            @nebulon @micmc @murgero Thanks guys. I'm used to cPanel and setting file permissions with chmod but don't know what those numbers translate to in Cloudron. So www-data for all public facing files and folders is ok?

            nebulonN micmcM 2 Replies Last reply
            0
            • humptydumptyH humptydumpty

              @nebulon @micmc @murgero Thanks guys. I'm used to cPanel and setting file permissions with chmod but don't know what those numbers translate to in Cloudron. So www-data for all public facing files and folders is ok?

              nebulonN Offline
              nebulonN Offline
              nebulon
              Staff
              wrote on last edited by
              #6

              @humptydumpty yes that is correct

              1 Reply Last reply
              1
              • humptydumptyH humptydumpty

                @nebulon @micmc @murgero Thanks guys. I'm used to cPanel and setting file permissions with chmod but don't know what those numbers translate to in Cloudron. So www-data for all public facing files and folders is ok?

                micmcM Offline
                micmcM Offline
                micmc
                wrote on last edited by
                #7

                @humptydumpty said in Setting the Correct File Owner:

                Thanks guys. I'm used to cPanel

                Now welcome to HIGH-CLASS simplified servers operations, through Cloudron web administrators' secret society 😛

                AI Intelligencia RED PILL Podcast
                (coming soon...)

                murgeroM 1 Reply Last reply
                3
                • micmcM micmc

                  @humptydumpty said in Setting the Correct File Owner:

                  Thanks guys. I'm used to cPanel

                  Now welcome to HIGH-CLASS simplified servers operations, through Cloudron web administrators' secret society 😛

                  murgeroM Offline
                  murgeroM Offline
                  murgero
                  App Dev
                  wrote on last edited by
                  #8

                  @micmc chanting one of us! one of us!

                  --
                  https://urgero.org
                  ~ Professional Nerd. Freelance Programmer. ~

                  1 Reply Last reply
                  3
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #9

                    FWIW, '.' or ':' works as separator between user and group in chown. Though ':' is recommended nowadays since it allows a '.' in the username.

                    micmcM 1 Reply Last reply
                    3
                    • girishG girish

                      FWIW, '.' or ':' works as separator between user and group in chown. Though ':' is recommended nowadays since it allows a '.' in the username.

                      micmcM Offline
                      micmcM Offline
                      micmc
                      wrote on last edited by
                      #10

                      @girish Useful info mate! 🙂

                      AI Intelligencia RED PILL Podcast
                      (coming soon...)

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search