Skip to main content
+44 7575 472931[email protected]
HostaccentKnowledge BaseHosting, websites, SEO, and growth

How to Install Node js on cPanel & Fix the 503 (2026)

How to install Node js on cPanel in 2026: pick Node 24 LTS, create the app, run npm install and fix the 503 most first deploys hit. Steps for both panels.

Shared HostingBeginner Guide
How to install Node js on cPanel, from choosing Node 24 LTS to running npm install and restarting the app in 2026

You've built a Node.js app, it runs perfectly on localhost:3000, and now it needs to live on a cPanel account. Good news: learning how to install Node js on cPanel takes about 10 minutes when your host has the right tool switched on, and you don't need root access or a terminal. The part that trips people up is the first page load, which often returns a 503. Our team resolves 20-30 client issues every day, and this guide comes from the Node deployments we untangle, written so you can finish the job yourself.

Quick Answer: Log in to cPanel, open Setup Node.js App (or Application Manager) under Software, and create an application. Choose Node.js 24, set the application root, URL and startup file (usually app.js), then upload your code with package.json but without node_modules. Click Run NPM Install, then Restart. As of September 2026, Node.js 24 is the safest version to pick.

Last verified: September 2026 (Node.js 24.21.0 Active LTS, Node.js 22 Maintenance LTS, cPanel Application Manager with Phusion Passenger)

Before You Start: Which Node.js Tool Does Your cPanel Have?

Open cPanel and scroll to the Software section. You'll find one of two tools, and the steps differ slightly between them.

  • Setup Node.js App is the CloudLinux Node.js Selector. Most shared hosting accounts show this one. It lets you pick a Node version per app and installs dependencies with a single button.
  • Application Manager is cPanel's own tool, built on Phusion Passenger and the ea-nodejs packages your host installs through EasyApache 4. The official cPanel guide to installing a Node.js application covers the server-side requirements.

If you see neither icon, the feature is switched off for your account. You can't add it yourself on shared hosting; your host has to enable it in WHM.

Can I actually run a Node app on shared hosting?

Yes, for the right kind of app. You can run a Node app on shared hosting when it answers web requests: an Express API, a small dashboard, a webhook receiver or a production-built Next.js site all work well. Passenger starts the app on the first request and manages the port for you. Background queues that must run 24/7, heavy WebSocket traffic or anything needing Docker belong on a VPS. Python apps run on the same Passenger setup; our Python hosting guide covers where Flask and Django fit.

Which Node.js version should you pick?

Pick Node.js 24 unless your project says otherwise. According to the Node.js release schedule, Node 24 gets security support until April 30, 2028, and Node 22 until April 30, 2027. Node 20 stopped receiving security fixes on April 30, 2026. Node 26 becomes LTS on October 28, 2026, so treat it as early access until then. Plenty of older guides still screenshot Node 16 or 20. Don't copy those choices.

Pro Tip: Run node -v on your own machine before creating the app. If it prints v24.x, select 24 in cPanel. A major-version mismatch is the quietest cause of "works on my laptop" failures.

How to Install Node js on cPanel With Setup Node.js App

To get a Node.js app live on a cPanel shared hosting account, you create it in Setup Node.js App, upload your code without node_modules, and click Run NPM Install. On a typical Express project the whole process takes about 10 minutes, and neither root access nor SSH is required. The cPanel Setup Node.js App tool handles the virtual environment for you.

Step 1: Prepare your files locally

Your project needs a package.json that lists every dependency, plus a clear entry file. Have the app read its port from the environment:

js
const express = require('express');
const app = express();
const port = process.env.PORT || 3000;

app.get('/', (req, res) => res.send('Node is running on cPanel'));
app.listen(port);

Zip the project without the node_modules folder. It's often 100 MB or more, and cPanel rebuilds it anyway.

Step 2: Create the application

Go to Software » Setup Node.js App » Create Application and fill in the form:

SettingWhat to enter
Node.js version24.x, or whatever node -v shows locally
Application modeProduction for a live site
Application rootA folder outside public_html, such as nodeapps/myapp
Application URLThe domain or subdomain the app should answer on
Application startup fileapp.js, server.js or your real entry file

Click Create. cPanel builds a virtual environment under ~/nodevenv/ and drops a placeholder app into your folder.

Step 3: Upload and extract your code

Open File Manager, go to the application root, upload your zip and extract it there. If your entry file shares the placeholder's name, overwrite it.

Step 4: Run the cPanel npm install

Back in Setup Node.js App, click the pencil icon beside your app, then Run NPM Install. cPanel reads package.json, installs packages into the virtual environment, and links them into your folder as a node_modules symlink. Large dependency trees can take a few minutes.

Prefer the terminal? Copy the source command printed at the top of the app's settings page. It looks like source /home/user/nodevenv/nodeapps/myapp/24/bin/activate && cd /home/user/nodeapps/myapp. After that, npm install and npm run build use the version you selected instead of the system default.

Step 5: Add environment variables and restart

Put secrets such as DATABASE_URL under Environment variables rather than shipping a .env file. Save, then click Restart.

Step 6: Verify it's live

Open the Application URL in a private window. You should see your app's response, not the placeholder "It works!" page. From SSH, curl -I https://yourdomain.com should return a 200 status.

Insider Insight: Keep the application root outside public_html. When a Node app sits inside the web root, one wrong .htaccess rule can serve your source code, secrets included, as plain text.

Professional help available

Still blocked by this control-panel issue?

Send the exact error and the action that triggers it. We can diagnose account, DNS, SSL, mail, and server-side causes without requiring a hosting transfer.

Request control-panel helpExplore control-panel supportHosted elsewhere? One-time paid support is available after scope and price confirmation.

Using cPanel Application Manager for Node Instead

cPanel Application Manager registers an existing folder as a Node.js app and hands it to Phusion Passenger, which starts the app on the first request. It has been part of cPanel since version 80, and it uses the newest ea-nodejs package your host has installed unless the host sets a different default.

The flow feels familiar, with different labels:

  1. Upload your project to a folder in your home directory, for example ~/myapp, with app.js as the entry file. Passenger looks for that name by default.
  2. Open Software » Application Manager » Register Application.
  3. Enter an application name (letters and numbers, no dots), the deployment domain, the base URL and the application path.
  4. Pick Production as the deployment environment and add your environment variables.
  5. Click Deploy, then use Ensure dependencies so cPanel installs everything in package.json.

To restart a Passenger app over SSH, touch a restart file inside the app folder: touch ~/myapp/tmp/restart.txt. The next request reloads your code. If the server offers the wrong Node version, the cPanel Passenger applications documentation shows your host where the default is set.

Why Your Node App Shows a 503 (and Other First-Run Mistakes)

A 503 Service Unavailable right after setup almost always means the app crashed while Passenger was starting it. The web server is fine; your code never came up, and in most cases the reason is printed in the first 20 lines of stderr.log in the application root.

According to Hostaccent's support-queue data (September 2026), Linux server issues make up about 25% of monthly tickets, and Node startup failures on cPanel sit squarely in that group. Our team sees the same few causes again and again, so we turned them into a pre-flight routine.

The Hostaccent 3-File Check

Run it before you click Run NPM Install. In our experience it prevents most first-deploy 503s.

  1. package.json sits in the application root, not in a subfolder your zip created. No package.json means no dependencies, and the app crashes instantly.
  2. There is no uploaded node_modules folder. The CloudLinux selector must create node_modules as a symlink, and a real folder with that name blocks it with an error. Delete the folder and rerun the install.
  3. The startup file name matches exactly. Server.js and server.js are different files on Linux.

Still getting a 503?

  • Read the log first. A Cannot find module line means a missing dependency. SyntaxError: Unexpected token often means the selected Node version is older than your code expects.
  • Check resource limits. Open Metrics » Resource Usage. If memory or entry processes hit 100%, the app is killed before it answers. Build Next.js and other bundled apps on your own machine and upload the output, because running a build inside a shared account's memory cap (often around 1 GB) regularly fails.
  • ES module entry files. If package.json contains "type": "module", some Passenger setups refuse the entry file. A tiny app.cjs that runs import('./server.js'), set as the startup file, usually solves it.
  • Development mode left on. Set Application mode to Production. Some frameworks in dev mode, Next.js with Turbopack for example, stumble over the symlinked node_modules.

The CloudLinux documentation explains the selector's behaviour and limits if you want the server-side view.

Pro Tip: After every code change, click Restart (or touch tmp/restart.txt). Passenger keeps the old process in memory, so uploading new files alone changes nothing. This catches experienced developers too.

When shared hosting stops being the right fit

If your app needs a process running 24/7 with no incoming traffic, native modules that won't compile, Docker, or hundreds of concurrent WebSocket connections, move to a VPS. There you'd follow our guide to deploy a Node.js app on a Linux VPS with PM2 and Nginx, containerise with Docker on an Ubuntu VPS, and lock the box down using a Linux VPS security baseline. Add server monitoring on your VPS and automated rsync backups, and you've replaced everything the shared plan handled for you.

Your Next Step: A cPanel Host That Helps With the Node Part

Most first-run 503s come from a stray node_modules folder or a startup file that doesn't match, not from the server itself. You could keep working out how to install Node js on cPanel by trial and error, or you could build on shared hosting where the engineers who untangle these deploys answer your ticket at 3am. Hostaccent is a UK-registered host (hosting since 2016, UK-incorporated 2018) with 10,000+ clients served and 24/7 human support. The Economy plan at $1.99/mo renews at the same $1.99/mo and comes with a 30-day money-back guarantee. One honest caveat: it's sized for a single site or light app, so always-on workers belong on a VPS. When you're ready, start on the Economy plan for $1.99/mo.

Frequently Asked Questions

How to install Node js on cPanel without SSH or root access?

Use the graphical tool your host provides. Open Setup Node.js App or Application Manager under Software, create the application, choose a Node version, and set the application root and startup file. Upload your code through File Manager, click Run NPM Install (or Ensure dependencies) to install packages, then Restart. You never touch root, and SSH stays optional. If neither tool appears in cPanel, ask your host to enable Node.js support for your account.

Does cPanel shared hosting support Node.js?

It does when the host enables it. cPanel has shipped Node.js support through Application Manager since version 80, and many shared servers also run the CloudLinux Node.js Selector, which appears as Setup Node.js App. Support is the host's decision rather than a cPanel default, so check the Software section of your dashboard. If both icons are missing, the feature is switched off for your plan, and only the host can turn it on in WHM.

Which Node.js version should I choose in cPanel?

Choose Node.js 24 in most cases. As of September 2026, it's the Active LTS release, with security support until April 30, 2028. Node 22 still works and is supported until April 30, 2027, but it now receives maintenance fixes only. Avoid Node 20 and anything older, because those lines are end-of-life and no longer get security patches. Always match the version you develop with locally, since mismatches cause confusing module errors.

Why does my Node.js app show "It works!" instead of my site?

That page comes from the placeholder file cPanel creates when you set up the application, which means your own code isn't loading yet. Usually the startup file setting still points at the placeholder while your real entry file has a different name, or your project landed in a subfolder instead of the application root. Correct the startup file field or move the files up one level, then click Restart so Passenger reloads the app.

Can I use PM2 on cPanel shared hosting?

You don't need it, and most hosts don't allow it. On cPanel, Phusion Passenger already starts, restarts and supervises your Node process, so PM2 would only duplicate that job. Background processes you launch yourself over SSH are usually stopped by the account's process limits. If your app genuinely needs PM2, a persistent worker or custom Nginx rules, that's a clear sign you've outgrown shared hosting and should move to a VPS.

Professional help available

Need a specialist to check the control-panel and server layers?

Send the exact error and the action that triggers it. We can diagnose account, DNS, SSL, mail, and server-side causes without requiring a hosting transfer.

  • No hosting transfer required
  • Scope confirmed before paid work
  • No changes before your approval
Request control-panel helpExplore control-panel supportHosted elsewhere? One-time paid support is available after scope and price confirmation.
Reviewed by

Hostaccent Editorial Team

Reviewed for technical accuracy and clarity before publication.

Last updated

Oct 4, 2026

HostAccent Editorial Team publishes practical hosting guides, operations checklists, and SEO-focused tutorials for businesses building international web presence.

Discussion

Have a question or tip about this topic? Share it below — your comment will appear after review.

Your email stays private and is only used for moderation.

Write for the Community

Have a tutorial, tip, or insight to share? Get published on the Hostaccent Blog with your name, bio, and website link.

Become a Contributor

Need a faster setup for this workflow?