New installation apache2 fails to start

(Linux beginner here)
This is a new installation of lubuntu. I’ve also installed samba and established communication to and from my Win10 PC.

I then installed Apache and got the “it works” page on both the localhost and my PC. So far so good, then, next day, apache failed to start.

I’m not sure where to start debugging this. Any ideas gratefully received

When you say “failed to start”, what do you mean exactly?

Do you see it running at all when using either top command or ps command? If not, you can start it via systemctl command.

Otherwise, you can maybe check the log file at /var/log/messages but I don’t recall if that’s where Apache sends its logs. There might be an apache folder or httpd folder in that same location though (for Apache logs).

Also, Apache won’t start automatically after reboot unless you tell Systemd (the service+system manager) to start it for you.

Appears to be the same question here - https://ubuntuforums.org/showthread.php?t=2467076

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.