Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21898

Clearing Cache on CLI via ezpublish/console changes folder permissions

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Fixed
    • Affects Version/s: 5.1, 5.2
    • Fix Version/s: Customer request
    • Component/s: Documentation
    • Labels:
      None

      Description

      this documentation provides settings to setup the permissions on a system without ACL:
      https://confluence.ez.no/pages/viewpage.action?pageId=12125276

      the examples are not clear. it is not explained that on systems without acl cache files generated will get permissions only for the user that created them. there are two cases:

      • after issuing the commands, if a console command is immediately run that changes caches, Sf will make those caches available only to the cli user, so it causes errors on the website.
      • on a running site, console commands that changes files, such a ezpublish/console cache:clear will show an error with writeable permissions and abort.

      currently the setting of permissions must be performed every time before/after a cli command, or the command must be run with the "su" command for www-data, or equivalent user.

        Issue Links

          Activity

          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Updated documentation:

          In any of the following cases, always ensure to run application scripts with the appropriate UNIX user (most likely the user running your webserver).
          You can control this user in your Apache configuration. Using PHP-FPM or SuExec module, you can specify a user per virtual host.

          Show
          Jérôme Vieilledent (Inactive) added a comment - Updated documentation: In any of the following cases, always ensure to run application scripts with the appropriate UNIX user (most likely the user running your webserver). You can control this user in your Apache configuration. Using PHP-FPM or SuExec module, you can specify a user per virtual host.

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Bras (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h