Setting up a Python APP in cPanel

Wycliffe

Last Update há 2 meses

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.

Was this article helpful?

1 out of 2 liked this article

Still need help? Message Us