Skip to content
By stack4 min read

Node.js hosting: what your app needs and how it runs on ArabyHost

Short answer

A Node.js app needs a process that stays running and answers requests, not just uploaded files. On ArabyHost it runs on AI/Developer plans with Node.js 20 and 24 through Setup Node.js App, which runs the app with Phusion Passenger, plus SSH, Git, npm and background workers kept alive by cron.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What a Node.js app needs in production
  2. How Node.js runs here
  3. Deploying, in short
  4. Bots and background workers
  5. What every account includes
  6. Limits to know
  7. On ArabyHost

Node.js differs from PHP in one fundamental way: your app is a long-running process that listens for requests, not a set of files executed per visit. So the host has to start that process, restart it when it stops and connect your domain to it. Ordinary shared hosting doesn’t do that, which is why Node.js apps on ArabyHost run on the AI/Developer plans.

What a Node.js app needs in production

Requirement Details On ArabyHost
Node.js version A long-term support (LTS) line. 24 is current; 20 reached end of life in April 2026 Node.js 20 and 24
Process management Start the app, restart it if it stops, route requests to it Phusion Passenger via Setup Node.js App
Port Listen on process.env.PORT, not a hard-coded number Passenger assigns it; no custom public ports
Dependencies npm ci from package-lock.json npm inside a virtual environment per app
Environment variables NODE_ENV=production, credentials, API keys Set in the app’s cPanel screen
Build step TypeScript or bundlers via npm run build Over SSH within plan memory, or build locally
Database MySQL or MariaDB through the mysql2 package MySQL/MariaDB
Background tasks Bots and workers that run without web requests Separate processes kept alive by cron

How Node.js runs here

You create the app in Setup Node.js App in cPanel: the CloudLinux selector that runs it through Phusion Passenger. Pick the Node.js version, the app folder, the URL (a domain or subdomain) and the startup file, such as app.js. LiteSpeed then receives requests over HTTPS and passes them to your app.

The selector keeps packages in a virtual environment for each app and puts a node_modules link in the app folder that points to it. So don’t upload node_modules; install with the Run NPM Install button, or over SSH after activating the environment:

source /home/USER/nodevenv/myapp/24/bin/activate
cd /home/USER/myapp
npm ci --omit=dev
mkdir -p tmp && touch tmp/restart.txt    # restart the app

Deploying, in short

  1. Push your code to GitHub, then clone it over SSH into /home/USER/myapp.
  2. Create the app in Setup Node.js App with Node.js 24, the folder, the URL and the startup file.
  3. Add environment variables such as NODE_ENV and the database credentials.
  4. Install packages, and run npm run build if your project needs it.
  5. Restart the app and open the URL. If you get a Passenger error page, the real cause is in the app’s log (error explained).

The full steps, with an example startup file, are in the Node.js deployment guide.

Bots and background workers

Passenger starts your app when requests arrive and may stop it after a quiet spell. A Telegram bot or queue worker has to keep running, so start it as a separate process from cron, wrapped in flock:

* * * * * flock -n /home/USER/worker.lock /opt/alt/alt-nodejs24/root/usr/bin/node /home/USER/worker/index.js >> /home/USER/worker/worker.log 2>&1

Cron tries to start the worker every minute and flock refuses a second copy, so if the worker dies it’s back within a minute. Details are in the cron jobs guide.

What every account includes

  • SSH jailed in CloudLinux CageFS, with Git, npm and your own resource limits (LVE).
  • Free SSL issued automatically, daily JetBackup backups and Imunify360 security.
  • Claude Code and Codex running on the server over SSH, and deploys from Claude or Cursor through Araby MCP.
  • The Araby AI assistant in the panel, which reads error logs and explains the fix, plus support in Arabic.

Limits to know

  • No root access, no Docker and no GPU.
  • You can’t open a public port for your app. All traffic goes through the web server on HTTP and HTTPS.
  • No per-account Redis, and the database available on the server is MySQL/MariaDB.
  • Memory and process counts are limited per plan, and large builds can exceed them (heap out of memory). Build locally or in GitHub Actions when that happens.
  • The first request after a quiet spell can be slower while Passenger starts the app again.

On ArabyHost

Pick one of the AI/Developer plans, add your SSH key in the panel, create your app on Node.js 24 and follow the deployment guide. If your app runs on another host today, ask for free migration help.

FAQ

Do I need PM2 to run a Node.js app here?

No. Passenger starts the app, restarts it if it stops and routes requests to it. Bots and workers that run without web requests are started from cron with flock.

Which version should I pick, Node.js 20 or 24?

24 for anything new; it's the current long-term support line. Node.js 20 reached end of life in April 2026, so keep it only for an older project you haven't tested on 24 yet.

Why shouldn't I upload node_modules?

CloudLinux's Node.js selector keeps packages in a virtual environment per app and links it into the app folder. Upload your code with package-lock.json only, then install with the Run NPM Install button or npm ci.

Does Node.js run on shared hosting?

No, Node.js apps run on AI/Developer plans only. Prebuilt React or Vue sites are static files, so they work on any plan.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.