Setup Python App

  • May 11, 2026
  • 0 Comments

Setup Python App in DirectAdmin

Summary  
This guide explains how to deploy and manage Python applications using the Setup Python App tool in DirectAdmin. This feature allows you to run Python apps (Flask, Django, FastAPI, custom scripts) without SSH, using a simple interface to configure virtual environments, WSGI files, and application settings.

Overview  
Setup Python App allows you to:
- Create and manage Python applications  
- Select Python versions  
- Automatically create virtual environments  
- Install Python packages via pip  
- Configure WSGI application entry points  
- Start, stop, and restart apps  
- View logs for debugging  

It is ideal for Flask, Django, FastAPI, Bottle, and custom Python APIs.

Requirements  
- DirectAdmin user-level access  
- Python App support enabled by your hosting provider  
- A domain or subdomain for the app  
- Application files uploaded to your hosting account  

Step-by-Step Instructions  

1. Access Setup Python App  
- Log in to DirectAdmin  
- Go to Extra Features → Setup Python App  
- Click “Create Application”  

You will see a configuration form.

2. Choose Python Version  
Select the Python version your app requires.  
Common options include:
- Python 3.7  
- Python 3.8  
- Python 3.9  
- Python 3.10  

Choose the version your project was built for.

3. Set Application Root  
This is the folder where your Python project lives. Examples:
- /domains/yourdomain.com/public_html/api  
- /domains/yourdomain.com/pythonapp  
- /home/username/myflaskapp  

Upload your project files to this directory before starting the app.

4. Set Application URL  
Choose the domain or subdomain that will serve your Python app:
- api.yourdomain.com  
- app.yourdomain.com  
- yourdomain.com/python  

5. Configure WSGI File  
Python apps run through a WSGI entry point.  
Common examples:

Flask (wsgi.py):

How helpful was this article to you?

Posting has been disabled.