Thông thường bạn sẽ nhận được một tin nhắn như thế này:
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
Vì vậy, tất cả những gì bạn cần làm là chạy:
journalctl -xe
Sau đó, bạn sẽ thấy một đầu ra tương tự như thế này
Nov 16 03:27:26 naboo sudo[9909]: pam_unix(sudo:session): session opened f
Nov 16 03:27:28 naboo systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has begun starting up.
Nov 16 03:27:29 naboo apachectl[9939]: (98)Address already in use: AH00072
Nov 16 03:27:29 naboo apachectl[9939]: no listening sockets available, shu
Nov 16 03:27:29 naboo apachectl[9939]: AH00015: Unable to open logs
Nov 16 03:27:29 naboo apachectl[9939]: Action 'start' failed.
Nov 16 03:27:29 naboo apachectl[9939]: The Apache error log may have more
Nov 16 03:27:29 naboo systemd[1]: apache2.service: Control process exited,
Nov 16 03:27:29 naboo systemd[1]: apache2.service: Failed with result 'exi
Nov 16 03:27:29 naboo systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit apache2.service has failed.
--
-- The result is RESULT.
Nov 16 03:27:29 naboo sudo[9909]: pam_unix(sudo:session): session closed f