> ## Content Index
> Fetch the complete content index at: https://www.fileshift.co/llms.txt
> Use this file to discover other available public pages before exploring further.

# Install apache on Ubuntu LTS 24.04
- URL: https://www.fileshift.co/install-apache-on-ubuntu-lts-24-04/
- Published: 2026-06-19T07:46:21.000Z
- Updated: 2026-10-30T13:30:47.000Z
- Description: Install apache on Ubuntu in 3 steps
- Author: Stef Wauters
- Tags: linux, webserver, #beehiiv, #Migrated-1793367027874, #Import 2026-10-30 13:30

1. **Update the Ubuntu system**You can do that with the command in the Command line.

```
sudo apt update && sudo apt upgrade -y
```

![Screenshot of an Ubuntu 24.04 desktop showing the Terminal application after running sudo apt update && sudo apt upgrade -y. The output indicates that all packages are up to date, with no packages upgraded, installed, or removed. The terminal prompt returns to student@server:~$, confirming the update process completed successfully.](https://storage.ghost.io/c/b7/e7/b7e7bcf5-fb93-4982-800c-041bd56ad189/content/images/2026/10/screenshot_from_2026-06-19_09-13-33-t-1781853227-2.png)

1. **Install Apache for Ubuntu Linux**In Ubuntu is the apache package called Apache2.For Fedora it’s httpd.

```
sudo apt install apache2 -y
```

![Screenshot of an Ubuntu 24.04 Terminal window showing the command sudo apt install apache2 -y. The output confirms that Apache2 version 2.4.58 is already installed and up to date, with no new packages installed, removed, or upgraded. The command prompt returns to student@server:~$, indicating the installation check completed successfully.](https://storage.ghost.io/c/b7/e7/b7e7bcf5-fb93-4982-800c-041bd56ad189/content/images/2026/10/screenshot_from_2026-06-19_09-18-11-t-1781853500.png)

1. **See if Apache runs**You see if the package runs by typing the next command or going to your web browser and search for [http://localhost](http://localhost/?utm%5Fsource=stefwxters.beehiiv.com&utm%5Fmedium=referral&utm%5Fcampaign=install-apache-on-ubuntu-lts-24-04).

```
sudo systemctl status apache2
```

![Screenshot of an Ubuntu 24.04 Terminal window displaying the output of sudo systemctl status apache2. The status shows the Apache HTTP Server (apache2.service) is loaded, enabled, and actively running. Details include the service process ID, memory usage, CPU time, and startup logs confirming that Apache started successfully. The terminal highlights Active: active (running) and Enabled: enabled, indicating the web server is operational and configured to start automatically at boot.](https://storage.ghost.io/c/b7/e7/b7e7bcf5-fb93-4982-800c-041bd56ad189/content/images/2026/10/screenshot_from_2026-06-19_09-27-15-t-1781854043.png)

**Active:** means that it is running on the computer.

**Enabled:** means that it automatically startups as the computer boots

![Screenshot of the Firefox web browser on Ubuntu 24.04 displaying the Apache2 Default Page at http://localhost. The page shows the Ubuntu logo, the heading “Apache2 Default Page,” and an “It works!” message, confirming that the Apache web server is installed, running correctly, and serving web pages on the local system.](https://storage.ghost.io/c/b7/e7/b7e7bcf5-fb93-4982-800c-041bd56ad189/content/images/2026/10/screenshot_from_2026-06-19_09-30-25-t-1781854243.png)