|With CentOS 7, you may have noticed that even though your script may working as expected, you're not able to see the session files or temporary files in the /tmp folder.|
The reason for this, is that with CentOS 7 supports a feature called:
PrivateTmp=trueWhat this feature does, is mounts /tmp and /var/tmp as private file systems, visible only to that process. So when php-fpm writes to /tmp, it's not the /tmp that you can see from ssh.. it's a virtual path, visible only to that process. Once the process stops, the virtual /tmp is removed.
Man page from systemd.exec:
If you don't like this behavior, edit:
/etc/systemd/system/php-fpm55.serviceand set PrivateTmp=false, and restart php-fpm (adjust 55 to whichever version you have)
© 2003 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST