You can deploy a Python application using the cPanel Application Manager. This process allows you to run Python applications within the cPanel environment, provided your specific hosting plan supports the Python runtime.
Important: This feature is only available on Hostek plans that include the Python application runtime.
Before you begin
You will need:
An active cPanel account
A Python application with its source code ready for deployment
Access to the Application Manager within your cPanel dashboard
Deploying the application
Log in to your cPanel account.
Locate the Software section and select Application Manager.
Click Add Application or Create New Application.
Enter the application name and select the appropriate Python version from the dropdown menu.
Provide the application's entry point (e.g.,
app.pyormain.py) and the directory path where the application files are located.Enter any required environment variables in the Environment Variables section.
Select the Application Type (such as Flask or Django, if applicable).
Click Save or Create to register the application.
Confirm the result
The application will appear in the list of managed applications within the Application Manager.
The status of the application will show as Running or Active once the initial startup is successful.
You can access the application via the URL provided in the Application Manager interface.
Limitations
This procedure only covers the deployment of the application within the cPanel environment. It does not include instructions for writing Python code or managing external dependencies via pip unless those dependencies are included in your local deployment folder.
