> ## 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 nginx on Ubuntu LTS 24.04
- URL: https://www.fileshift.co/install-nginx-on-ubuntu-lts-24-04/
- Published: 2026-06-21T04:00:00.000Z
- Updated: 2026-10-30T13:30:45.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-1.png)

1. **Install the nginx package for Ubuntu Linux**

```
sudo apt install nginx -y
```

![Screenshot of an Ubuntu 24.04 Terminal window showing the command sudo apt install nginx -y. The output confirms that nginx version 7.12 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_14-58-16-t-1781873911.png)

1. **See if nginx 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-nginx-on-ubuntu-lts-24-04).

```
sudo systemctl status nginx.service
```

![Screenshot of an Ubuntu 24.04 Terminal window displaying the output of sudo systemctl status nginx. The status shows the Apache HTTP Server (nginx.service) is loaded, enabled, and actively running. Details include the service process ID, memory usage, CPU time, and startup logs confirming that nginx 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_15-05-16-t-1781874323.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 Nginx Default Page at http://localhost. The page shows the heading “Welcome to Nginx! Thank you for using nginx.](https://storage.ghost.io/c/b7/e7/b7e7bcf5-fb93-4982-800c-041bd56ad189/content/images/2026/10/screenshot_from_2026-06-19_15-07-10-t-1781874437.png)