From: http://blog.oddbit.com/2012/11/05/fedora-private-tmp/ 發現 apache 的 /tmp 不是真的作業系統下的 /tmp 原因是在 /etc/systemd/system/multi-user.target.wants/httpd.service /usr/lib/systemd/system/php70-php-fpm.service 裡面有一行 PrivateTmp=true ,改成 false 再重新 reload systemctl 的 daemon 即可 Grasping at straws I took a close look at the systemd service file for httpd, which looks like this: [Unit] Description=The Apache HTTP Server (prefork MPM) After=syslog.target network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/var/run/httpd/httpd.pid EnvironmentFile=/etc/sysconfig/httpd ExecStart=/usr/sbin/httpd $OPTIONS -k start ExecReload=/usr/sbin/httpd $OPTIONS -t ExecReload=/bin/kill -HUP $MAINPID ExecStop=/usr/sbin/httpd $OPTIONS -k stop PrivateTmp=true [Install] WantedBy=multi-user.target Browsing throught file the following line caught my eye: PrivateTmp=true