• Latest
  • Trending
  • All
How to Install n8n for Free on a VPS Server using aaPanel (Full Setup Guide + Script)

How to Install n8n for Free on a VPS Server using aaPanel (Full Setup Guide + Script)

October 20, 2025
Automate Doctor Appointments with WhatsApp: Complete n8n Workflow Guide

Automate Doctor Appointments with WhatsApp: Complete n8n Workflow Guide

October 17, 2025
Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required

Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required

October 9, 2025
How to Build an AI WhatsApp Chatbot with n8n and OpenAI (Step-by-Step Guide)

How to Build an AI WhatsApp Chatbot with n8n and OpenAI (Step-by-Step Guide)

October 2, 2025
Installing & Configuring n8n on VPS (pm2 + LiteSpeed)

Installing & Configuring n8n on VPS (pm2 + LiteSpeed)

September 27, 2025
🚀 How to Send WooCommerce Order Notifications on WhatsApp Without Using Cloud API

🚀 How to Send WooCommerce Order Notifications on WhatsApp Without Using Cloud API

May 8, 2025
How to Create a Flight and Tour Booking Website & App Using WordPress (With Skyscanner Integration)

How to Create a Flight and Tour Booking Website & App Using WordPress (With Skyscanner Integration)

April 6, 2025
Introducing CargoHub: The Ultimate WooCommerce Courier and Logistics Plugin

Introducing CargoHub: The Ultimate WooCommerce Courier and Logistics Plugin

February 28, 2025
How to Connect WooSMS API with OTP Login Woocommerce Plugin

How to Connect WooSMS API with OTP Login Woocommerce Plugin

February 1, 2025
How to Launch Your Own Flight and Hotel Booking Website with a Ready-Made Script

How to Launch Your Own Flight and Hotel Booking Website with a Ready-Made Script

January 27, 2025
How to Add WhatsApp as a Payment Gateway in WooCommerce | Order on WhatsApp for WooCommerce

How to Add WhatsApp as a Payment Gateway in WooCommerce | Order on WhatsApp for WooCommerce

December 21, 2024
Shipment Tracker for WooCommerce: Simplify Your Shipping Process

Shipment Tracker for WooCommerce: Simplify Your Shipping Process

December 16, 2024
How to Get Your WhatsApp Business Display Name Approved: WhatsApp branding guidelines

How to Get Your WhatsApp Business Display Name Approved: WhatsApp branding guidelines

November 14, 2024
  • Home
  • Contact us
  • Domain Checker
  • Portfolio
  • Privacy Policy
Monday, October 20, 2025
  • Login
Wp Hacks4u
  • Home
  • Domain Checker
  • wordpress
    • woocommerce
    • SSL
    • Google Map
  • Tech
  • Portfolio
  • CargoHub
No Result
View All Result
Wp Hacks4u
No Result
View All Result
Home AI

How to Install n8n for Free on a VPS Server using aaPanel (Full Setup Guide + Script)

by RAHUL
October 20, 2025
in AI
0
How to Install n8n for Free on a VPS Server using aaPanel (Full Setup Guide + Script)
493
SHARES
1.4k
VIEWS
Share on FacebookShare on Twitter

If you’ve ever wanted to host your own automation powerhouse like Zapier, you’ll love this guide.
In this tutorial, we’ll walk through installing n8n — the free and open-source workflow automation tool — on a VPS server using aaPanel, along with a ready-to-run installation script.

You’ll get everything you need:
✅ Install aaPanel
✅ Set up Node.js, PM2, and n8n
✅ Secure your instance with SSL (HTTPS)
✅ Access n8n via your domain
✅ Fix common setup errors


⚙️ What You’ll Need

  • A VPS server (I recommend Hostinger VPS Hosting)

  • A domain (example: n8n.yourdomain.com)

  • Basic Linux terminal knowledge

  • Root SSH access


🧩 Step 1: Connect to Your VPS

Login to your VPS using SSH:

ssh root@your_server_ip

If you’re using Hostinger, you’ll find your IP and login credentials inside your VPS dashboard.


🖥️ Step 2: Install aaPanel

aaPanel is a free, user-friendly server management panel that makes it easy to handle web apps, databases, and security settings.

Run this single command to install aaPanel:

yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_7.0_en.sh && bash install.sh

Once installed, you’ll get a login URL and credentials in the terminal — copy and save them.
Example:

aaPanel Internet Address: http://your-server-ip:8888/xxxxxx
username: admin
password: yourpassword

🌐 Step 3: Add Your Domain & Set Up Environment

  1. Log in to aaPanel.

  2. Go to Website > Add Site.

  3. Add your domain (e.g., n8n.yourdomain.com) and select:

    • PHP Version: None

    • Create FTP / Database: No

  4. It will create a default directory like:

    /www/wwwroot/n8n.yourdomain.com

⚡ Step 4: Run the Ready-to-Use n8n Installation Script

Now it’s time to install Node.js, PM2, and n8n in one go.
Copy and paste this entire script below into your terminal:

#!/bin/bash

# n8n Auto Installation Script
# Author: Team WPHacks

# Update system
apt update -y && apt upgrade -y

# Install Node.js (LTS)
curl -fsSL https://deb.nodesource.com/setup_18.x | bash –
apt install -y nodejs build-essential

# Install PM2 for process management
npm install pm2 -g

# Create n8n directory
mkdir -p /root/.n8n && cd /root

# Install n8n globally
npm install n8n -g

# Set Environment Variables
cat <<EOF > /root/.n8n/.env
WEBHOOK_URL=https://n8n.yourdomain.com/
N8N_HOST=0.0.0.0
N8N_PORT=5678
N8N_PROTOCOL=https
EOF

# Start n8n with PM2
pm2 start n8n –name n8n
pm2 save
pm2 startup

echo “✅ n8n installation completed!”
echo “Access your instance via: https://n8n.yourdomain.com”

💡 Tip: Replace n8n.yourdomain.com in the script with your actual domain before running.

Save and run the script:

nano n8n-install.sh
bash n8n-install.sh

🔒 Step 5: Secure Your n8n Instance with SSL (HTTPS)

  1. In aaPanel, go to Website → n8n.yourdomain.com → SSL

  2. Choose Let’s Encrypt

  3. Add your email and issue the certificate

aaPanel will automatically configure your site to use HTTPS.
After that, your n8n instance will be available at:

👉 https://n8n.yourdomain.com


🧭 Step 6: Access the n8n Dashboard

Visit your URL in the browser:

https://n8n.yourdomain.com

You’ll see the n8n editor interface — ready for building automation workflows.
To keep n8n running permanently, PM2 handles process restarts even after reboot.


🧰 Troubleshooting Common Errors

❌ Error: Port 5678 Already in Use

Run:

lsof -i:5678
kill -9 <process_id>
pm2 restart n8n

⚠️ Error: Can’t Access via Domain

  • Check your domain DNS points to your VPS IP.

  • Verify SSL certificate is active in aaPanel.

  • Confirm firewall allows port 80 & 443.

🔁 n8n Not Starting on Reboot

Run:

pm2 startup
pm2 save

🚀 Bonus: Auto Start Script on Reboot

Add this to your crontab:

crontab -e

Then add the line:

@reboot pm2 resurrect

🎉 Done!

You’ve successfully installed n8n on your VPS server using aaPanel, complete with HTTPS security, domain access, and auto restart with PM2.
Now you can start building automations — from WhatsApp bots to Google Sheets workflows — without relying on paid services.

Tags: hostingN8NVPS
Share197Tweet123
RAHUL

RAHUL

  • Trending
  • Comments
  • Latest
How to make fake WooCommerce reviews? | Automatically generate reviews for your WooCommerce product

How to make fake WooCommerce reviews? | Automatically generate reviews for your WooCommerce product

June 18, 2022
How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

How to Create a Hotel or Tour Booking Website with HotelEase – Ultimate Hotel Booking Website Software for WordPress

November 14, 2024
How to convert a WordPress or Woocommerce website into an App for Free

How to convert a WordPress or Woocommerce website into an App for Free

June 30, 2023
How to Buy a Domain & Hosting in Hostinger And install WordPress in 5 Minute

How to Buy a Domain & Hosting in Hostinger And install WordPress in 5 Minute

4
HOW TO CREATE A CAKE ORDERING WEBSITE | ONLINE CAKE SHOP | TUTORIAL

HOW TO CREATE A CAKE ORDERING WEBSITE | ONLINE CAKE SHOP | TUTORIAL

1
HOW TO MAKE WOOCOMMERCE FOOD ORDERING WEBSITE LIKE ZOMATO&SWIGGY

HOW TO MAKE WOOCOMMERCE FOOD ORDERING WEBSITE LIKE ZOMATO&SWIGGY

1
How to Install n8n for Free on a VPS Server using aaPanel (Full Setup Guide + Script)

How to Install n8n for Free on a VPS Server using aaPanel (Full Setup Guide + Script)

October 20, 2025
Automate Doctor Appointments with WhatsApp: Complete n8n Workflow Guide

Automate Doctor Appointments with WhatsApp: Complete n8n Workflow Guide

October 17, 2025
Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required

Build a Complete WhatsApp Commerce Bot for WooCommerce with Automated Order Management, Razorpay Payment Integration, and AI-Powered Customer Support Using n8n — No Coding Required

October 9, 2025
Wp Hacks4u

Copyright © 2025 Wphacks4u.com

Navigate Site

  • Home
  • Contact us
  • Domain Checker
  • Portfolio
  • Privacy Policy

Follow Us

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now
This is a test site
Build with Digits
Protected by   
No Result
View All Result
  • Home
  • Domain Checker
  • wordpress
    • woocommerce
    • SSL
    • Google Map
  • Tech
  • Portfolio
  • CargoHub

Copyright © 2025 Wphacks4u.com

Enable Notifications OK No thanks