Getting your Node.js app live on cPanel takes just a few minutes with the built-in Node.js selector. Here’s the complete step-by-step process:
- Log in to cPanel.
- Under the “Software” section, click Setup Node.js App.
- Click the Create Application button.
- Fill in the details:
- Choose the required Node.js version (16, 18, 20, 22, etc.)
- Select Application mode (Production or Development)
- Set Application root (the folder that will contain your app files, e.g., nodeapp or public_html/myapp)
- Choose the domain or subdomain where the app will run
- Enter the Application startup file (usually app.js, server.js or index.js)
If the app doesn’t start, click View Log to check for errors, or look inside the .logs directory in your application root.
That’s all — your Node.js application is successfully deployed!