I had a website running fine on Debian 7 + PHP 5.6, and recently decided to upgrade my Debian installation to Debian 8. Everything went fine, except for a small thing.
While running the same code, seems like PHP is unable to write anything to /tmp/
, now I get messages like:
errno: 2,
errstr: "ZipArchive::extractTo(): Permission denied",
errcontext: {
Filepath: "/tmp/phpVTUxDh",
Options: null,
Zip: {
status: 0,
statusSys: 0,
numFiles: 12,
filename: "/tmp/phpVTUxDh",
comment: ""
},
Status: true
Apparently the method extractTo()
is having an hard time to write to \tmp
is there any specific change on the system that could be causing this? What about the new systemd PrivateTmp
thing?
I tried to add PrivateTmp=false
to the files:
/etc/systemd/system/multi-user.target.wants/lighttpd.service
/etc/systemd/system/multi-user.target.wants/php5-fpm.service
However, it doesn't seem to do any difference there.
Anyway, any specific reason why \tmp
is now always empty? Also,where is the new location of the tmp?
Thank you.