Command line to restart php-fpm by virtual server owner

2 posts / 0 new
Last post
#1 Sun, 06/30/2019 - 07:44
hexadog

Command line to restart php-fpm by virtual server owner

Hi,

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 ?

Regards,

Sun, 07/28/2019 - 18:16
jimdunn

I think you'll need sudo:

#!/bin/sh
/etc/init.d/apache2 restart
/etc/init.d/php7.0-fpm restart

Or, for systemd:

#!/bin/sh
systemctl restart apache2
systemctl restart php7.0-fpm
Topic locked