Wie kann ich PHP-FPM per Skript restarten (zB. einmal täglich)?
Ich habe folgenden Code gefunden:
Code: Select all
Note: prepend sudo if not root
Using SysV Init scripts directly:
/etc/init.d/php-fpm restart # typical
/etc/init.d/php5-fpm restart # debian-style
/etc/init.d/php7.0-fpm restart # debian-style PHP 7
Using service wrapper script
service php-fpm restart # typical
service php5-fpm restart # debian-style
service php7.0-fpm restart # debian-style PHP 7
Using Upstart (e.g. ubuntu):
restart php7.0-fpm # typical (ubuntu is debian-based) PHP 7
restart php5-fpm # typical (ubuntu is debian-based)
restart php-fpm # uncommon
Using systemd (newer servers):
systemctl restart php-fpm.service # typical
systemctl restart php5-fpm.service # uncommon
systemctl restart php7.0-fpm.service # uncommon PHP 7
Oder gibt es eine Version des Befehls der allgemein gilt?
Bzw. läuft es unter einen bestimmten PHP Version.. wenn ja wo schaue ich die richtige Version nach?
Gilt der Restart für alle Benutzer?
Würde mich über eine Antwort freuen.