We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 708
    • 144 Posts
    hi,

    i’ve installed modx on my ubuntu 8.04 with lamp , in the manager i can’t open the assets directory to create a new template...what’s the way to change the rights on this directory ?
    i don’t understan dbecause i’ve done a change to install like this :

    chmod o+rw -R /home/happy/+Devweb/modx-0.9.6.2/assets

    have a tips ?

    thx
      AipHesBlOg
      Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
      ---------------------------------------------------------------
      French webdesigner
      • 24983
      • 59 Posts
      Try this command:

      chmod 777 -R /home/happy/+Devweb/modx-0.9.6.2/assets

      Have you also checked that /assets/ acctually have the correct permissions?

      ls -l
        • 708
        • 144 Posts
        result of terminal :

        happy@aiphesbuntu:~$ ls -l /home/happy/+Devweb/modx-0.9.6.2/assets
        total 60
        drwxrwxrwx 3 happy happy 4096 2008-10-19 16:42 cache
        drwxrwxrwx 2 happy happy 4096 2008-09-16 06:44 docs
        drwxrwxrwx 2 happy happy 4096 2008-09-16 06:44 export
        drwxrwxrwx 2 happy happy 4096 2008-09-16 06:44 files
        drwxrwxrwx 2 happy happy 4096 2008-09-16 06:44 flash
        drwxrwxrwx 2 happy happy 4096 2008-09-16 06:44 images
        drwxrwxrwx 2 happy happy 4096 2008-09-16 06:44 import
        -rwxrwxrwx 1 happy happy 70 2007-02-24 20:24 index.html
        drwxrwxrwx 2 happy happy 4096 2008-09-16 06:44 js
        drwxrwxrwx 2 happy happy 4096 2008-09-16 06:44 media
        drwxrwxrwx 4 happy happy 4096 2008-09-16 06:44 modules
        drwxrwxrwx 3 happy happy 4096 2008-09-16 06:44 plugins
        drwxrwxrwx 2 happy happy 4096 2008-09-16 06:44 site
        drwxrwxrwx 9 happy happy 4096 2008-09-16 06:44 snippets
        drwxrwxrwx 5 happy happy 4096 2008-10-19 14:15 templates

        but access denied in spite of terminal action :
        happy@aiphesbuntu:~$ sudo chmod 777 -R /home/happy/+Devweb/modx-0.9.6.2/assets
          AipHesBlOg
          Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
          ---------------------------------------------------------------
          French webdesigner
          • 24983
          • 59 Posts
          Hm from your output it doesn’t seem like a permission problem anymore, as all directories now are completly open (not a good pratcie). If I’m not mistaken, the correct permissions should be 755 for all folder, excpet for cache, export and images, which should have 777. That is the way I have done it on my setup.
          I’m not quite sure what could be the problem then, maybe someone else can help?

          Anyways, in the mean time, you could always just add folders and files manually.
            • 708
            • 144 Posts
            i don’t understand whats wrong with this install... huh
            nobody can help me ?
              AipHesBlOg
              Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
              ---------------------------------------------------------------
              French webdesigner
              • 27330
              • 884 Posts
              Quote from: aiphess at Oct 19, 2008, 11:16 AM

              in the manager i can’t open the assets directory to create a new template...what’s the way to change the rights on this directory ?

              what do u mean open the assets dir to create a template? this doesn’t make sense to me. Do you mean the file/resource browser under Resources/Manage Files ?
              and why do u think it’s a permission error?

              maybe try the copy the modx folder to another location and set the new path in the manager?

                • 708
                • 144 Posts
                in the manager you can go to ressources > maange files and you can clic on assets or install and explore them...but on my modx local if i click i have un message"access denied" accés interdit in french...
                  AipHesBlOg
                  Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
                  ---------------------------------------------------------------
                  French webdesigner
                  • 27330
                  • 884 Posts
                  i see now what u mean. i always do Resources>manage resources>Templates never used the file browser for doing templates. funny modx never have only one way of doing things smiley

                  only thing I can think of is to check that u have the correct path in Resource Path under Tools>configuration>Interface & Features
                    • 28042 ☆ A M B ☆
                    • 24,524 Posts
                    If you create a file using the Manager -> Resources -> File Manager, it will create the file with the owner being the Apache user (apache, www, nobody... whatever user Apache runs as.), and whatever default file creation permissions your system is configured to use. Then you will not be able to access this file as another user.

                    You’ll see the same problem with images if you’re using MaxiGallery; you can manage the images with MaxiGallery or the File Manger, but you won’t be able to with a local user or an ftp user.

                    My solution to this is to make the Apache user a member of the same group as my user, and make sure that all files/folders are created with group writable permissions. That way both my user and the Apache user can write the files.
                      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
                      • 708
                      • 144 Posts
                      ok i will try to add apache user to ma user group in ubuntu...
                      the paths in configuration are ok

                      in waiting, i create the template via resources>manage resources > template > new template....it’s work smiley
                        AipHesBlOg
                        Serveur Local Linux Ubuntu - Apache 2.2.9 - Php 5.2.6 - MySQL 5.0.67
                        ---------------------------------------------------------------
                        French webdesigner