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.
- Upload your code or clone it over SSH into a folder such as
~/nodeapp. - In cPanel open Setup Node.js App and click Create Application.
- Choose the Node.js version, set the application root to
nodeapp, the URL to your domain and the startup file, for exampleserver.jsorapp.js. - 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.
- 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.