"systemctl status apache2.service" and "journalctl -xe" for detail code example Example: systemctl status apache2.service journalctl | tail