n8n is a powerful workflow automation platform that lets you connect apps, APIs, and logic visually. If you’re hosting on CentOS Web Panel (CWP) and want to deploy n8n entirely from the User Panel — without touching the terminal — this guide walks you through a clean, modular setup using the built‑in Node.js App Manager.
package.json and .env examplespackage.jsonIn your app directory (main domain root or subdomain root), create a file named package.json with the following content:
{
"name": "n8n-hosted",
"version": "1.0.0",
"description": "Self-hosted n8n via CWP Node.js Apps",
"main": "node_modules/n8n/bin/n8n",
"scripts": {
"start": "n8n"
},
"dependencies": {
"n8n": "1.123.7"
}
}
You can change “dependencies” version to any older or newer but select your desire Node.js version as well that match the n8n version. If you want to use very latest, then can use "n8n": "latest" at dependencies but as we found v2.x.x still not working perfectly with CWP Nodejs. So, stay with v1.x.x till now. You can change 1.123.7 to newer version of this v1.x.x, when you read this article.
v24.x.x (tested; versions above 20.x.x may also work)n8n)/home/youruser/automation.example.com)n8nExample configuration (Key: N8N_PORT & Value: 50001):
N8N_PORT=50001
N8N_HOST=0.0.0.0
N8N_PROTOCOL=https
N8N_LISTEN_ADDRESS=127.0.0.1
N8N_WORKER_SERVER_ADDRESS=127.0.0.1
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=clientuser
N8N_BASIC_AUTH_PASSWORD=Securepass@2014%
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
WEBHOOK_URL=https://automation.example.com
WEBHOOK_TUNNEL_URL=https://automation.example.com
VUE_APP_URL_BASE_API=https://automation.example.com
N8N_WORKER_BASE_URL=https://automation.example.com
N8N_SECURE_COOKIE=true
N8N_PUSH_BACKEND=sse
N8N_RELEASE_TYPE=stable
N8N_GIT_NODE_DISABLE_BARE_REPOS=true
N8N_BLOCK_ENV_ACCESS_IN_NODE=false
Replace
automation.example.comwith your actual domain/subdomain. UpdateN8N_PORTonce you know the assigned port. Use a strong username and password for authentication.
Click Save and note the port assigned to your app.
N8N_PORT with the actual port assigned in Step 2.env matches the app’s assigned port, click Start Application
Finally, visit your subdomain (e.g., https://automation.example.com), register an account, and sign in. Setup page can take up to 1- 5 minutes to complete the sing up process, so wait until it's finished. 🎉 You now have a fully running n8n instance on your CWP shared hosting or CWP reseller hosting — no SSH required. Remember, you can deploy 1 n8n instance with per hosting account. If incase deploy multiple instances, still the database & configuration will remain same, but the URL will be only different.
Kindly follow this simple step to upgrade your existing n8n instance to latest version:
Looking to host your own n8n instance with ease?