Skip to content
By stack4 min read

Python hosting for web apps, APIs and bots

Short answer

To run Python in production you need the right Python version, a virtual environment for your packages, a WSGI application server and a way to keep background jobs alive. ArabyHost's AI/Developer plans provide all of that: Python 3.9 to 3.12 through Setup Python App (Phusion Passenger), with SSH, Git and cron.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What a Python app needs in production
  2. Which plan fits Python apps?
  3. How deployment works on ArabyHost
  4. Bots and background jobs
  5. Limits to know up front
  6. On ArabyHost

Running Python on the web isn’t like dropping PHP files into public_html. A Python app is a process that stays in memory and answers requests, its packages live in their own environment, and something has to restart it after every update or when it crashes. That’s why ordinary shared hosting won’t do: you need a plan that allows Python apps and gives you a command line.

What a Python app needs in production

  • A suitable Python version: match what you developed on. Most current libraries support Python 3.10 and newer, and the latest Django releases require 3.12.
  • A virtual environment (virtualenv): keeps the project’s packages separate, installed from requirements.txt.
  • An application server: Flask and Django speak WSGI; FastAPI speaks ASGI. The development servers (flask run, manage.py runserver) are not for production.
  • A database: MySQL or MariaDB for most sites, SQLite for small projects with few writes.
  • Environment variables: to keep API keys and database passwords out of the code.
  • HTTPS and a domain: required for logins, forms and incoming webhooks.
  • Background processes: bots, task queues and scheduled jobs that live outside the request/response cycle.
What your app needs What ArabyHost provides
A current Python Python 3.9, 3.10, 3.11 and 3.12 via the Python Selector
Isolated packages A virtual environment created automatically per app
A WSGI server Phusion Passenger through passenger_wsgi.py
A command line SSH jailed in CageFS, with pip and Git
A database MySQL/MariaDB from the control panel
Long-running processes Background workers kept alive by cron
HTTPS Free SSL issued automatically (AutoSSL)
Data protection Daily backups with JetBackup

Which plan fits Python apps?

Python apps run on AI/Developer plans only. Shared, WordPress and WooCommerce plans are built for PHP 8.1 to 8.3 with MySQL; they have no SSH and can’t run Python or Node.js apps. AI/Developer plans combine Python 3.9 to 3.12, Node.js 20 and 24, PHP 8.1 to 8.3, Git and Composer, with SSH jailed in CageFS. Claude Code and Codex also run on them over SSH if you build with AI tools.

The AI plans differ in resources: memory, process count and disk throughput. A small Flask site needs little; an app that loads pandas, processes large files or runs several bots needs a bigger plan. Compare them on the pricing page.

How deployment works on ArabyHost

  1. Open cPanel with one click from the Araby Panel, go to Setup Python App and choose Create Application.
  2. Pick the Python version, the app folder (Application root), the URL (Application URL) and the startup file passenger_wsgi.py.
  3. Upload the code from GitHub with Git Version Control and a .cpanel.yml file, as a ZIP, or from Claude or Cursor through Araby MCP.
  4. Connect over SSH, activate the virtual environment and install your packages:
source ~/virtualenv/myapp/3.12/bin/activate
cd ~/myapp
pip install -r requirements.txt
  1. Add environment variables on the app’s page, then click Restart (or run touch tmp/restart.txt).

Passenger looks for an application object in passenger_wsgi.py and hands it the requests. Framework-specific steps are in the Flask deployment guide, the Django guide and the FastAPI guide.

Bots and background jobs

Passenger manages processes around requests and may stop an app after a quiet spell. So don’t run a bot or queue consumer inside the web app. Run it as a separate process and let a cron job check on it every few minutes; flock prevents two copies from running at once:

*/5 * * * * flock -n $HOME/bot.lock $HOME/virtualenv/bot/3.12/bin/python $HOME/bot/main.py >> $HOME/bot/bot.log 2>&1

If the process is already running, the command exits immediately; if it died, it starts again. The Python Telegram bot guide walks through this pattern.

Limits to know up front

  • No root: no sudo or apt. Packages that need missing system libraries may fail to compile; packages that ship prebuilt wheels usually install without trouble.
  • No Docker: if your project relies on docker-compose, run it in a virtual environment instead.
  • No GPU: the plans aren’t suited to running large AI models locally; call models through an API.
  • Per-account resources: memory, CPU and process count are capped by LVE limits according to the plan.
  • ASGI and WebSockets: Passenger runs Python apps over WSGI, so FastAPI needs an adapter and WebSocket connections from a Python app don’t work.
  • No public ports: visitors reach the app through the domain via Passenger, not on a port such as 8000.

On ArabyHost

Start with one of the AI/Developer plans, create the app in Setup Python App and deploy from GitHub or a ZIP. You get free SSL issued automatically, daily backups, the LiteSpeed web server and CageFS isolation for your account. If you hit ModuleNotFoundError or the app stops, the Araby AI assistant reads the error log and explains the fix, and support answers in Arabic. If the project currently lives with another provider, ask for free migration help.

FAQ

Does regular shared hosting support Python apps?

No. Shared, WordPress and WooCommerce plans run PHP only and have no SSH. Python apps run on AI/Developer plans, which include Setup Python App and SSH.

How do I install pip packages on the hosting?

Setup Python App creates a dedicated virtual environment for each app. Log in over SSH, activate it with the source command shown on the app's page, then run pip install -r requirements.txt.

Can I keep a Python Telegram bot running all the time?

Yes, on AI/Developer plans. The bot runs as its own process, and a cron job checks every few minutes that it's alive and restarts it if it stopped.

Can I run AI models locally on the hosting?

There are no GPUs and resources are capped per account, so the plans aren't suited to running large models. The practical approach is to call models through an API from your app.

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.