How to Set Up a Node.js Application in cPanel
dotCanada supports Node.js applications through cPanel's built-in Setup Node.js App tool. Whether you're running an Express API, a Next.js project, or a custom Node.js app, you can get it up and running in just a few steps.
Setting Up Your Node.js App
- Log in to cPanel and go to Software > Setup Node.js App.
- Click Create Application.
- Select your desired Node.js version.
- Set the Application Mode to Production or Development.
- Set the Application Root - the folder where your app files are stored (e.g.,
myapp). - Set the Application URL - the domain or subdomain that will serve the app.
- Set the Application Startup File (e.g.,
app.jsorserver.js). - Click Create.
Installing Dependencies
After creating the app, click Run NPM Install in the cPanel interface, or connect via SSH, activate the virtual environment using the command shown in cPanel, then run:
npm installStarting and Managing Your App
- Use the cPanel interface to Start, Stop, or Restart your application.
- Environment variables can be added directly in the cPanel Node.js App configuration panel.
Accessing Your App
Once running, your Node.js app will be accessible at the URL you configured. If you need to map a custom domain or troubleshoot startup errors, contact our support team and we'll help you out.
100% Satisfaction Guarantee
We're so confident you'll love dotCanada that we offer a 30-day money-back guarantee. Not satisfied? Get a full refund, no questions asked.
Ready to Get Started?
Join thousands of Canadian website owners who trust dotCanada for reliable, fast web hosting.
Get Started Today
