On our development servers, we allow multiple developers access to the server to git pull
their changes. Normally this requires running sudo systemctl reload php-fpm
(or sending USR2
, etc.). However, we want to allow them to reload the changed code in PHP-FPM without needing sudo
.
Way back when when I used to use Ruby, you could do exactly what I'm looking for by touch
ing a file named restart.txt
in the tmp
directory.
Does PHP-FPM support anything like that? Alternatively, is there anyway to allow the reload
command (or any similar method of sending a USR2
) without sudo
?
php-fpm
aftergit pull
? – Godesbergopcache.validate_timestamps
for performance testing and benchmarking (and in production, though that's not relevant for this question), and the easiest way to clear the OpCache is with a reload. – Kerriekerrigan