why is apache dead?
I have been developing under Docker but I am running out of time and want to develop directly on my local laptop. I think I need to install LAMP first. The first step is to get apache running, but as you can see it is dead. What to do?
richb201@richb201-XPS-13-9370:~$ sudo service apache2 status
[sudo] password for richb201:
● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; disabled; vendor preset: Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: inactive (dead) 3 1 Answer
Debian (and in turn, Ubuntu and family) generally enable and start services automatically upon installation. For some reason, the apache2 service is disabled in your installation. (The output shown doesn't include the vendor preset, so we can't tell if you disabled it or it came disabled.) So, you need to start it manually:
sudo systemctl start apache2.serviceAnd enable it if you want it to start on reboot:
sudo systemctl enable apache2.serviceOr, combined:
sudo systemctl enable --now apache2.service