On cPanel hosting, use the Setup Node.js App tool (Application Manager).
- Log in to cPanel from your client area and open Setup Node.js App.
- Click Create Application, choose the Node.js version, set the Application root (your code folder), the Application URL, and the startup file (e.g.
app.js). - Add any environment variables, then click Create.
- Use the Run NPM Install button (or the shown
source/npmcommands) to install dependencies, then start the app.
cPanel runs it behind Phusion Passenger, so no manual port setup is needed. If you require custom ports, background workers, or full process control (PM2, etc.), a VPS or Dedicated server gives you complete freedom. Need help choosing? Open a ticket.