Fix for php-fpm and server restarts