What are the right ownership & permissions to the CakePHP app/tmp folder for production?

后端 未结 2 935
[愿得一人]
[愿得一人] 2021-02-02 03:00

I would like to know the answers and explanation to the following questions:

  1. Which user/group should own the cake files?

  2. If different, which use

2条回答
  •  长发绾君心
    2021-02-02 03:22

    For all files in app/tmp and subfolders you only need rw for the web server process and if needed to use the CLI, the console user.

    If someone runs console commands with a user that has super rights or is in the wrong group it messes up things because what one creates can't be read or written from the other and then there are warning or failure messages. Some people (including me when I'm too lazy) fix that with 777 :)

提交回复
热议问题