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

前端 未结 3 1181
無奈伤痛
無奈伤痛 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:42

    Because systemd is configured to give nginx a private /tmp. If you must use the system /tmp instead for some reason then you will need to modify the .service file to read "PrivateTmp=no".

提交回复
热议问题