Php has its own /tmp in /tmp/systemd-private-nABCDE/tmp when accessed through nginx

前端 未结 3 1182
無奈伤痛
無奈伤痛 2021-02-05 05:25

I found strange behaviour concerning php and /tmp folder. Php uses another folder when it works with /tmp. Php 5.6.7, nginx, php-fpm.

3条回答
  •  我在风中等你
    2021-02-05 05:37

    If you are running multiple sites on the server then I think you'll want to leave PrivateTmp=yes so that each site remains segregated even in it's use of temp files. Could be a security issue otherwise, I'd imagine.

提交回复
热议问题