V
V
Vlad Sklyar2018-07-29 11:25:35
PHP
Vlad Sklyar, 2018-07-29 11:25:35

How to request status via SSH using PHP?

For example, the Apache2 daemon is running, on Ubuntu 18.04
I install the php-ssh2 library and use it to connect to my own machine.
How can I query the status of a daemon systemctl status apache2and only determine if it is running or not?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Ulanov, 2018-07-29
@antonsr98

Zabbix is ​​the easiest server monitoring solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question