Home » Php » /tmp directory is not cleaned on live server

/tmp directory is not cleaned on live server

Posted by: admin September 25, 2018 Leave a comment


Laravel: 5.5
Horizon: 1.2.3
php: 7.2
ubuntu: 16.04, LAMP

I don’t know if this issue is related to redis server of horizon, but what I’m sure that this happens. When using database driver the /tmp starts to fill with tmp php files with pattern like this php34gs1 phpwrd42 after the queue is processed the /tmp is cleaned and reverted.

However when I use redis driver with horizon the /tmp directory is filled untill my my 60GB server is full and I only resolve this either by deleting them manual from cli or worse to reboot server.

with redis driver

with database driver

the tmp php files that keep there permenantly