Command line to restart php-fpm by virtual server owner


Virtual server owner can apply php and apache changes by clicking the “apply changes” button within webmin interface. But can it be done usi g command line ?

One virtual server update settings by scripts and need to restart php-fpm (without having sudo access - and only the one related to the current virtual server). What’s the command line to do it ?


I think you’ll need sudo:

/etc/init.d/apache2 restart
/etc/init.d/php7.0-fpm restart

Or, for systemd:

systemctl restart apache2
systemctl restart php7.0-fpm