# Hosting Python (Django and Flask) Applications on cPanel

https://bihostnet.com/en/knowledgebase/article/deploy-python-django-flask-applications-cpanel

## How Python Operates on cPanel

Python web frameworks interface with Apache via Phusion Passenger utilizing WSGI (Web Server Gateway Interface).

## Configuration Steps

1. Open **Setup Python App** in cPanel and click **Create Application**.
2. Select Python 3.x, configure App Root directory and domain route.
3. Click **Create** to initialize an isolated Python virtualenv.
4. Run `pip install -r requirements.txt` in the activated virtual environment via terminal.
5. Click **Restart** to serve the application live.
