Skip to main content
Updated: August 9, 2026
Matic Bončina
By Matic BončinaFounder
Review pending
Express is the easy case. Write your routes, point the startup file at them, and let Passenger run the app. For the underlying tool, see Node.js.

Before you begin

  • A Node.js app created in cPanel.
  • The app root contains your Express project with package.json.

Wire up the export

1

Edit your entry file (default `app.js`)

app.js
Keeping an app.listen(3000) here works just as well. Passenger moves the server onto a Unix socket and ignores the port.
2

Install dependencies

Click Run NPM Install in the cPanel app management page.
3

Restart

Click Restart.

Use environment variables

Express reads from process.env. Add variables in the cPanel UI under Environment variables, then restart for them to take effect:

Common issues

Add the JSON parser middleware: app.use(express.json()). For form data: app.use(express.urlencoded({ extended: true })).
Install cors, mount before your routes:

Need a hand?

Open a ticket

Best for anything that needs an account check or a config change on our end.

Live chat

Faster for quick questions during business hours.