How to setup a Python App in cPanel

To create a new Python application that uses a specific Python version, follow these steps:

  • Log in to cPanel.
  • In the SOFTWARE section of the cPanel home screen, click Setup Python App
      
 
  • Click CREATE APPLICATION:

 
       

 

  • The application form will appear:

 

       

  • In the Python version list box, select the Python version you want to use.
  • In the Application root text box, type the directory where the application files are located.
  • In the Application URL list box, select the domain, and then type a URL for the application.
  • In the Application startup file text box, you can optionally specify the startup file for the application.

  • In the Application Entry point text box, you can optionally specify the callable object for the application. 

  • In the Passenger log file text box, you can optionally specify a log file for the application.
  • Under Environment variables, you can optionally set environment variables for the application. To do this, click ADD VARIABLE, type the variable name and value, and then click DONE.
  • In the top right corner of the page, click CREATE:

Take note of the following :

  1. If you do not specify a startup file, cPanel creates a passenger_wsgi.py startup file for you.
  2. If you do not specify the application entry point, cPanel creates a default application object for you.
  3. Logging is not supported on servers running LiteSpeed.
  • 0 Users Found This Useful
  • Python App, setup
Was this answer helpful?

Related Articles

How to check the Disk Usage of a Directory and Bandwidth Usage

If you are receiving a disk space usage warning and don't know which folder is using too much...

How to create a new folder or files in the cPanel File Manager

1. Log into your cPanel account. 2. In the Files section, click on the File Manager Icon. 3....

How to upload files via the cPanel File Manager

If you don't want to use a 3rd party FTP Software, you can use the cPanel's inbuilt File...

How to access cPanel Web Disk

You can use cPanel login details to access your Web Disk, which supports various operating...

How to add a CNAME Record in cPanel using the DNS Zone Editor

CNAME records are referred to as alias records since they map an alias to its canonical name. You...