These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Command line to restart php-fpm by virtual server owner on the new forum.
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,
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