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

    Im having an issue where files that are created by MODx revo (2.1.1) are created as user apache / group apache (other files are user domain / group name).

    In particular with cache files and package management files.

    It causes issues when clearing cache and think its also effecting the reliability of cache functionality.

    Is this caused by a setting in Modx or a setting on the server? How would I rectify?

    Any info appreciated.

    Stuart




    • This has nothing to do with MODX and certainly has no effect on the reliability of the cache. It’s how most Apache/PHP configurations work when run as an Apache module: the user executing the PHP process is the same as the Apache process.
      • It’s a server thing. If your PHP is running as an Apache module, it usually runs as the Apache user, so all files any of the MODx scripts create will belong to that user. For this reason, the files and folders that will be handled by any of the internal MODx scripts needs to be set to 666 and 777 (world-writable) permissions.

        If either the Apache mod_suexec is used or PHP is running as a CGI with some kind of suexec, then any scripts are run as the owner of the script (you, in this case), and permissions are best set to 644 and 755.
          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