Etheron Hosting

How do I install a Nginx webserver on my Linux VPS?

Terug naar VPS

How do I install a Nginx webserver on my Linux VPS?

Here’s How to Install the Nginx Web Server on Your Linux VPS

Here’s How to Install the Nginx Web Server on Your Linux VPS

  1. Go to the VPS panel and log in.

  2. Click Manage on your desired (Linux) server.

image

  1. Ensure your VPS is running and click the VNC logo.

image

  1. Log in.

Your username is likely "root," and your password can be found in your email.

image

  1. Begin by updating everything. Type: sudo apt update

image

  1. Ensure the firewall is enabled. Type: sudo ufw enable

image

  1. Now start installing Nginx. Do this by typing: sudo apt install nginx

image

  1. During the installation, you will be asked: "Do you want to continue?" Type Y and press the **ENTER **key.

image

  1. During the installation, Nginx is automatically added to ufw. To list applications that work with ufw, type: sudo ufw app list

image

  1. The output should look like this:

image

Nginx Full: All ports open (80 and 443).

Nginx HTTP: Only port 80 open.

Nginx HTTPS: Only port 443 open.

  1. Now, open the firewall. It is recommended to only open the port you need. For us, this will be port 80. So we type: sudo ufw allow 'Nginx HTTP'

image

  1. To check if this was successful, type: sudo ufw status

image

  1. The output should look like this:

image

  1. Nginx is now installed. You can confirm this by typing: systemctl status nginx. It should display active.

image

If you encounter any issues, feel free to reach out via Discord or create a support ticket through this link.

Lars Volkers
Bijgewerkt op: 13-03-2026
Was dit artikel nuttig?