We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23054
    • 62 Posts
    When moving from development environment to the production server - what are the minimal rights for group and world for the folders and files.

    At least I would like to know the default configuration for all folders and files and the execptions if there are some.
    • If you’re on a server that has php as fastcgi and phpsuexec, it doesn’t need any world-writable folders or files, since your scripts are run as their owner (you).

      Otherwise, scripts run as the web server (apache) user, usually "apache", "www", or "nobody". This means any folders or files that will be written to must be world-writable. This includes:

      assets/cache (and its files)
      assets/images
      assets/export
      assets/flash
      assets/files

      You’ll want to make sure that your manager/includes/config.inc.php is NOT world-writable.

      All folders will need to be world-executable (755) in either case.
        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
        • 23054
        • 62 Posts
        Thanks - that is what I wanted to know - so far it has been try and error for some folders.