Install apache on Ubuntu LTS 24.04
Install apache on Ubuntu in 3 steps
- Update the Ubuntu systemYou can do that with the command in the Command line.
sudo apt update && sudo apt upgrade -y
- Install Apache for Ubuntu LinuxIn Ubuntu is the apache package called Apache2.For Fedora it’s httpd.
sudo apt install apache2 -y
- See if Apache runsYou see if the package runs by typing the next command or going to your web browser and search for http://localhost.
sudo systemctl status apache2
Active: means that it is running on the computer.
Enabled: means that it automatically startups as the computer boots
