How to Set Up a Python Application in cPanel

dotCanada supports Python applications through cPanel's Setup Python App tool. Whether you're running a Flask, Django, or FastAPI project, you can host it on your account with a dedicated Python environment.

Creating a Python Application

  1. Log in to cPanel and navigate to Software > Setup Python App.
  2. Click Create Application.
  3. Choose your preferred Python version.
  4. Set the Application Root - the directory where your Python files are stored.
  5. Set the Application URL - the domain or subdomain for your app.
  6. Set the Application Startup File and the Application Entry Point (the WSGI callable, e.g., app for Flask).
  7. Click Create.

Installing Python Packages

After setup, activate the virtual environment using the command shown in cPanel (it looks like source /home/username/virtualenv/myapp/bin/activate), then install your packages:

pip install flask

Or install from a requirements file:

pip install -r requirements.txt

Managing Your App

  • Use the cPanel interface to Start, Restart, or Stop the application.
  • Update code by uploading new files or pulling via Git, then restart the app.

Python apps on dotCanada run in isolated virtual environments, keeping your dependencies clean and conflict-free. If you need help getting started, contact our support team anytime.

100% Satisfaction Guarantee

We're so confident you'll love dotCanada that we offer a 30-day money-back guarantee. Not satisfied? Get a full refund, no questions asked.

Ready to Get Started?

Join thousands of Canadian website owners who trust dotCanada for reliable, fast web hosting.

Get Started Today