We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25942
    • 11 Posts
    Just installed Ubuntu 6.10 Server and am having difficulty with permissions for ModX.

    Anyone able to help?

    New to Linux, in general, so please take it slow tongue
      • 4707
      • 73 Posts
      Assuming you are installing a brand new site, this is what you should do in your MODx root folder:

      ### before installing

      # set the cache folder rwx to everyone
      chmod 777 assets/cache

      # set the cache files rw to everyone
      chmod 666 assets/cache/site*

      # set the image folder rwx to everyone
      chmod 777 assets/image

      # set the export folder rwx to everyone
      chmod 777 assets/export

      # change the name of the config file, if you haven’t done it already.
      mv manager/includes/config.inc.php.blank manager/includes/config.inc.php

      # set the config file rw to everyone
      chmod 666 manager/includes/config.inc.php

      ### after installing

      # set the config file rw only for you, r for everyone else.
      chmod 644 manager/includes/config.inc.php

      # delete the install folder, if you haven’t done it already.
      rm -rf install

      That should work.
        • 25942
        • 11 Posts
        Cassiel,
        You rock! Went smooth except for the rename, due to config.inc.php.blank not existing but the ModX team had a note about new Linux installs needing to create a empty config.inc.php file on one of the test pages so no problems.

        Could you explain the difference of chmod’ing in terminal and using the file properties in Gnome? I am almost positive that I set them correctly from there the first time but I couldn’t get anything but assets/cache to pass.
        Scratch that. As I typed that I realized that I hadn’t changed the file permissions. I had only changed the directory permissions.

        Boy, I can’t wait for my Linux books to get here. Going to have a lot of reading to do.

        Big thanks again, Cassiel. Of course, I’ll expect you to be here for me from now on. grin After I google for 5 seconds, of course. rolleyes

        Chuck "Newly Tux’d" Chandler
          • 4707
          • 73 Posts
          Glad I could help a fellow ubuntero smiley Don’t rely on me though, as I’ve start using Ubuntu just a few months ago wink

          Both chmod’ing in terminal and the file properties dialog in gnome nautilus do the same thing. I just prefer the terminal because it’s a little more flexible.
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Just an "old granny’s" tip... I haven’t bought a computer book for over five years. Five minutes with Google can find more articles and tutorials than you can shake a stick at. For example, one of my favorites:

            http://rute.2038bug.com/index.html.gz

            A good place to start:

            http://www.linuxquestions.org/bookmarks/rss/all/guide
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 25942
              • 11 Posts
              Ah, sottwell. I was planning on asking you for advice on template design, eventually. Hope this doesn’t burn into my allotment. tongue
              I understand what you are saying, though. I like having a printed quick reference at hand. I google quite a bit and try to wait before asking questions until times like this when I’ve convinced myself I am doing something correctly but it still isn’t working.

              Thank you both for the help and advice.

              Chuck ’Always listens to his granny’ Chandler

              The first link is pretty darn close to being a book. The second is a great idea. It will allow me to learn stuff I probably would never have thought I needed to know. Thanks.