Contents
Passenger is built by Phusion, a Dutch company, and it’s common on hosting platforms because it lets you run non-PHP apps without managing a full server or claiming a port yourself.
How Passenger works
- A request for one of the app’s URLs reaches the web server.
- Passenger checks whether a process for the app is ready; if not, it starts one.
- It hands the request to the app and returns the response to the visitor.
- It watches the processes: a crashed one is replaced, and one that sits idle long enough may be stopped.
Each language has its own entry point:
| Language | What Passenger looks for |
|---|---|
| Node.js | The configured startup file, such as app.js, which calls listen() |
| Python | A passenger_wsgi.py file exposing an application variable (WSGI) |
| Ruby | A config.ru file (Rack) |
Example: a Django app behind Passenger
# passenger_wsgi.py
import os, sys
sys.path.insert(0, os.path.dirname(__file__))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
After every code update:
mkdir -p tmp && touch tmp/restart.txt
Common mix-ups and problems
- Passenger isn’t a full web server: it’s a layer between the web server and your app.
- Don’t assume a fixed port: in Node.js read
process.env.PORTwith a fallback. Web application could not be started: a code error or missing package; the real cause is in the app’s log: see the error page.- ASGI: Passenger speaks WSGI for Python, so FastAPI needs an adapter.
On ArabyHost
On AI/Developer plans, Node.js apps (versions 20 and 24) and Python apps (3.9 to 3.12) run through cPanel’s CloudLinux selectors (Setup Node.js App and Setup Python App) which use Phusion Passenger. You choose the app folder, URL and startup file, and restart with one click. Bots and background workers are kept alive by a cron job rather than Passenger. If the app fails, the Araby AI assistant in the panel reads the error log and explains the fix.
FAQ
How do I restart an app running under Passenger?
Use the Restart button on the app's page in the control panel, or update the timestamp of tmp/restart.txt in the app folder with touch; Passenger restarts the app on the next request.
Why is the first request after a quiet spell slower?
Passenger may stop an app's processes after a period without traffic to save resources, then start them again on the next request. That's normal and is called a cold start.
Can I run a bot or background job inside Passenger?
It isn't recommended, because Passenger manages processes around requests and may stop them at any time. Bots and long-running jobs work better as separate processes.