United States - English

Choose your Country/Region

  • whatsapp: 00201117719900
cart icon 0
cart icon 0

N8N - How to Install n8n Server on Ubuntu Print

  • n8n, Ubuntu
  • 0

 

 

 

Complete Guide: Install n8n with NG HOST VIP Script

Full and secure installation in under 5 minutes — Docker + PostgreSQL + Nginx + Free SSL

The n8n_setup.sh script by NG HOST VIP is a one-click solution to deploy the n8n automation platform on any Ubuntu / Debian server, complete with PostgreSQL database, Nginx reverse proxy, and a free Let's Encrypt SSL certificate — all configured automatically.

Prerequisites Before You Start

Requirement Details
Operating System Ubuntu 20.04 / 22.04 / 24.04 or Debian 11/12
Server Specs Minimum: 1 CPU – 2GB RAM – 20GB Storage
Domain A domain or subdomain such as n8n.example.com
DNS Record An A Record pointing to your Server IP
Permissions Root user or a user with sudo privileges
Email Address Required for Let's Encrypt SSL registration
Open Ports Ports 80 and 443 open in your firewall
Important: Your domain must already point to your server's IP before running the script, otherwise SSL issuance will fail.

Installation Steps

1 Connect to Your Server via SSH

Connect to your server using any SSH client (such as PuTTY or Terminal):

 ssh root@YOUR_SERVER_IP

Replace YOUR_SERVER_IP with your actual server IP address.

2 Download the Script

Download the script from the official NG HOST VIP server:

 wget https://download.nghost.vip/n8n_setup.sh

Or with curl:

 curl -O https://download.nghost.vip/n8n_setup.sh

3 Grant Execute Permission

 chmod +x n8n_setup.sh

4 Run the Script

 sudo ./n8n_setup.sh

The NG HOST VIP welcome banner will appear:

+==========================================================+
|                    NG HOST VIP                           |
|             n8n ULTIMATE SETUP EDITION                   |
+==========================================================+
       Preparing your automation engine...

5 Enter Setup Information

The script will prompt you for:

Enter your Domain: n8n.example.com
Enter your Email:  [email protected]
  • Domain: The domain you've pointed to your server.
  • Email: Your email for SSL certificate registration.
Warning: If either field is empty, the script throws Error: Domain and Email are required! and stops.

What the Script Does Automatically

After you submit your information, the script executes 6 automated phases:

Phase 1 / 6 Repair Package Manager

Fixes any interrupted installations and ensures the package manager is healthy.

Phase 2 / 6 Install Docker, Nginx & Certbot

  • Refreshes the server package list automatically to make sure required software is available.
  • Installs the required components for running n8n, including Docker, Nginx, and the SSL certificate tool.
  • Starts the required services and enables them to run automatically after server reboots.

Phase 3 / 6 Set Up n8n with PostgreSQL

  • Creates the project working directory automatically.
  • Generates the Docker configuration needed to run:
    • Database: PostgreSQL ready for n8n.
    • n8n: The official n8n application inside Docker.
  • Starts the containers automatically in the background without any manual action.

Phase 4 / 6 Configure Nginx Reverse Proxy

Creates the required Nginx configuration to route your domain to n8n, enables the configuration, and restarts Nginx automatically.

Phase 5 / 6 Issue Free SSL Certificate

  • Issues a free SSL certificate from Let's Encrypt.
  • Enables automatic redirection to secure HTTPS access.

Phase 6 / 6 — Success Confirmation & Success

A final success screen displays:

  • Access URL: https://yourdomain.com
  • Admin email confirmation
  • Project path: ~/n8n
  • Docker, Nginx & SSL status
Security Note: The script automatically deletes itself after completion for security reasons.

Access the n8n Dashboard

Open your browser and visit:

https://yourdomain.com
  1. Create your Owner account with your name, email, and a strong password.
  2. Click Next to complete the setup.
  3. Start building your first automated Workflow.

Useful Post-Installation Commands

Command Purpose
docker compose ps Show container status
docker compose logs -f n8n Follow live n8n logs
docker compose restart Restart n8n
docker compose down Stop n8n
docker compose pull && docker compose up -d Update n8n to latest version
sudo certbot renew Manually renew SSL certificate
sudo nginx -t Test Nginx configuration

Common Troubleshooting

SSL Certificate Issuance Failed

Cause: DNS hasn't propagated yet.
Solution: Verify with ping yourdomain.com and wait for DNS propagation.

Website Not Loading

Make sure firewall ports are open:

 sudo ufw allow 80
 sudo ufw allow 443

Error: port 5678 already in use

Another application is using the same port. Stop it or change the port in docker-compose.yml.

Security Recommendations

  1. Change the default database password (n8npass) in ~/n8n/docker-compose.yml and restart containers.
  2. Enable Two-Factor Authentication (2FA) inside your n8n account.
  3. Create regular backups of the ~/n8n/ directory.
  4. Keep your server updated: sudo apt update && sudo apt upgrade -y

Congratulations — n8n is Live!

With this script you can deploy n8n on any server in under 5 minutes instead of spending hours on manual configuration.

NG HOST VIP — Your partner in simplifying automation and deploying powerful tools with ease.

Visit nghost.vip


Was this answer helpful?
Related Articles
Odoo - How to Install Odoo Server on Ubuntu

      Complete Guide: Install Odoo on Any Ubuntu VPS Production-ready ERP in...

Supabase self host - How to Install Supabase Server on Ubuntu

      Complete Guide: Self-Host Supabase on Any Ubuntu VPS Production-ready...

Back
Rate Your Experience