Guides tagged “nodejs”
Step-by-step MdmHost guides about nodejs, sorted A-Z.
23 guides · page 1 of 2
Add free SSL (HTTPS) to a Node.js app
Secure a Node.js app with free SSL: AutoSSL on cPanel, or Let's Encrypt with Certbot on an Nginx or Apache reverse proxy, plus redirects and trust proxy.
CloudPanel: host a Node.js app with the Node.js site type
Add a Node.js site in CloudPanel, point it at your app port, run the process under systemd and let the generated Nginx vhost serve it on your domain.
Deploy a Next.js app on a Linux VPS (next start or standalone)
Build and run a Next.js app in production on a Linux VPS with next start or the smaller standalone output, keep it alive with PM2 and serve it through Nginx.
Deploy a Next.js app on cPanel hosting with Setup Node.js App
Run a server-rendered Next.js site on MdmHost cPanel hosting: build it, upload it, create the app in Setup Node.js App with a custom server file and restart.
Deploy a Node.js app with PM2 behind Nginx
Install a Node.js LTS release, keep your app running with PM2 across crashes and reboots, and serve it through Nginx with HTTPS.
Enable Node.js and Python Selector for cPanel users (CloudLinux root guide)
Install alt-nodejs and alt-python versions, enable the Node.js and Python selectors in CloudLinux Manager, set defaults and limit what users can run.
Express.js basics: build and host a small Node.js API
Create a small Express.js API with routes, JSON and static files, make it production-ready behind a proxy, and host it on cPanel or a Linux VPS.
Fix common Node.js errors: EADDRINUSE, 503, out of memory, module not found
Fix the Node.js errors hosting customers see most: port already in use (EADDRINUSE), 503 on cPanel, JavaScript heap out of memory and Cannot find module.
Host a Node.js app in cPanel with Setup Node.js App
Deploy an Express or other Node.js application on cPanel hosting with Setup Node.js App: choose the Node version, set the startup file, install npm packages and restart.
How to set up a Node.js app in cPanel with CloudLinux Node.js Selector
Deploy a Node.js application on cPanel hosting with Setup Node.js App: choose the Node version, set the startup file, install npm packages and run it on your domain.
Install Node.js and npm on a Linux VPS (nvm or NodeSource)
Install a current LTS version of Node.js and npm on Ubuntu, Debian, AlmaLinux or Rocky Linux using nvm or the NodeSource repository, and verify it works.
Node.js environment variables: .env files, cPanel and PM2
Set environment variables for Node.js apps safely using .env files, the cPanel Setup Node.js App screen, PM2 ecosystem files and systemd, and read them in code.
Node.js logs and debugging on cPanel and a VPS
Find where your Node.js app writes its logs on cPanel, PM2 and systemd, read crash messages, add useful logging and debug safely in production.
Node.js WebSockets behind Nginx, Apache, LiteSpeed or cPanel
Make Socket.IO or ws WebSockets work behind a reverse proxy: upgrade headers for Nginx, Apache and LiteSpeed, timeouts, wss:// over SSL and cPanel limits.
PM2 process manager: keep Node.js apps running on a VPS
Use PM2 to run Node.js apps in the background, restart them on crash, start them at boot, run cluster mode and manage logs with an ecosystem file.
Put a Node.js app behind Nginx, Apache or LiteSpeed (reverse proxy)
Serve a Node.js app on port 80/443 by proxying a domain to it with Nginx, Apache or OpenLiteSpeed, including headers, WebSocket support and testing.
Run a Node.js app with Docker Compose behind Nginx
Containerise a Node.js app with a small Dockerfile, run it with Docker Compose next to an Nginx reverse proxy, and add logs, restarts and HTTPS.
Run a Node.js application in Plesk
Enable Node.js for a domain in Plesk, set the application root and startup file, install npm packages, add environment variables and restart the app.
Set up Nginx as a reverse proxy for any backend app
Put Nginx in front of a Node.js, Python, Go or Java app running on a local port, forward the right headers, tune timeouts and buffering, and add free HTTPS.
Smaller Docker images with multi-stage builds
Use Docker multi-stage builds to separate build tools from the runtime image. Worked examples for Node.js, Go and Python, plus slim base images and layer caching tips.
Browse by topic
- Getting startedYour first hour with a new server: access, logins and basics.69 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.37 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.49 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.40 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.37 guides
- DomainsRegistering, transferring and managing domains and nameservers.20 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.19 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.30 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.23 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.23 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.7 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.30 guides
- PleskWebsites, email, databases and settings in the Plesk panel.52 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.40 guides
- WHMCSBilling, automation, products and client management with WHMCS.51 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.106 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.115 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.34 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.52 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.64 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.68 guides
- Linux VPSSSH, packages, services and everyday Linux administration.70 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.58 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.58 guides
Still stuck?
Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.
