We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20710
    • 65 Posts
    When installing or upgrading there is a check to make sure the /assets/cache, /export, /files, /flash, /images and /media folders are all writable (nothing short of 777 works for me) but what should they be set to post install?
      • 20710
      • 65 Posts
      Does anyone have the answer?
        • 40045
        • 534 Posts
        755 for folders and 644 for files works well on my envirionment
          • 20710
          • 65 Posts
          Cheers smiley
            • 20710
            • 65 Posts
            Ok, so I changed all the folders to 755 but now I get errors after I log in saying that configuration and cache are not writeable. Also I can't upload any pics into the images folder unless I do it via ftp. Also updates don't show because the cache is not writeable. Weird things going on? What to do???
            • The 755 permission is standard for systems that are configured to use some form of su_exec (where a .php script runs as the owner of the script instead of the web server user). If your system uses the Apache php module and no su_exec module, you need to have directories that MODX (the index.php script) will write to, such as when writing the cache or uploading files, set to 777. Files would need to be 666.

              Just as a side note... for many years I've taken care to make sure that any hosting I use or recommend uses some kind of su_exec.
                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
                • 20710
                • 65 Posts
                Thanks, I am on a shared server so don't have too much access, 777 makes the issue go away but having 777 set allowed someone (I assume) to write a dodgy php file to the image folder and send 100's of spam emails. Seems like a bit of a catch 22 situation?
                • Which is why I won't use a host that requires those permissions.
                    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
                    • 20710
                    • 65 Posts
                    Ok, cheers, I'll see what I can arrange. Thanks for the help.
                      • 36416
                      • 589 Posts
                      Quote from: sottwell at Aug 10, 2014, 10:49 AM
                      If your system uses the Apache php module and no su_exec module, you need to have directories that MODX (the index.php script) will write to, such as when writing the cache or uploading files, set to 777. Files would need to be 666.

                      Technically this is not correct anymore - mod_ruid2 works great in combination with DSO bringing SuExec-like functionality to Apache modules...