Setting up a Node.js app in cPanel

Updated 19/11/2026 · 1 min read

Node.js Business Hosting runs your app as a managed application, so it starts on its own and restarts if it stops.

  1. Upload your code or clone it over SSH into a folder such as ~/nodeapp.
  2. In cPanel open Setup Node.js App and click Create Application.
  3. Choose the Node.js version, set the application root to nodeapp, the URL to your domain and the startup file, for example server.js or app.js.
  4. Click Create, then Run NPM Install. You can also run the command shown at the top of the page in SSH to enter the app's environment and use npm or yarn yourself.
  5. Add environment variables on the same page, then press Restart.

Your app must listen on the port given in process.env.PORT. For Next.js, run npm run build first and use a small start file that calls next start.

Was this helpful? Still stuck? Open a ticket
Talk to sales