Using the Python Selector with TurnUpHosting

To create a new Python application with a specific Python version using TurnUpHosting, follow these steps:

  1. Log in to your cPanel account.
  2. Open the Python App tool.                                                                                                                                    cPanel - Software - Setup Python App icon
  3. Click on the "CREATE APPLICATION" button.
  4. Fill out the application form:
    • Select the desired Python version from the Python version list box.
    • Enter the directory where the application files are located in the Application root text box.
    • Select the domain from the Application URL list box and enter a URL for the application.
    • Optionally, specify the startup file for the application in the Application startup file text box. If not specified, cPanel will create a default startup file.
    • Optionally, specify the callable object for the application in the Application Entry point text box. If not specified, cPanel will create a default application object.
    • Optionally, specify a log file for the application in the Passenger log file text box (only available on cPanel version 110 and earlier).
  5. In the Configuration files section, you can manage and install modules for the application:
    • Type the name of the configuration file (e.g., requirements.txt) in the "Add another file and press enter" text box and press Enter.
    • Click on "Add".
    • Click on "Run Pip Install" and select the name of the configuration file you specified. This will install the specified modules for the application.
  6. Optionally, set environment variables for the application under the Environment variables section by clicking on "ADD VARIABLE", entering the variable name and value, and clicking on "DONE".
  7. Click on "CREATE" in the top right corner of the page.
  8. TurnUpHosting will create the application and set up the Python environment.

To work inside the newly created environment, connect to your account using SSH and run the following command, replacing "username", "application", and "version" with the actual values shown at the top of the page, next to "Enter to the virtual environment":

source /home/username/virtualenv/application/version/bin/activate && cd /home/username/application

You can now install modules or use other commands to further develop your Python application. Additionally, you can control the application's running state from cPanel by clicking on "STOP APP" to stop the application, "RESTART" to restart it, or "DESTROY" to completely remove it from cPanel.

Was this answer helpful?

Related Articles

550 Sender verify failed error message

The "550 Sender verify failed" error message typically occurs when the sender's email...

Accessing cPanel

There are three ways you can access your cPanel account and either way will work. You can search...

Accessing phpMyAdmin and phpPgAdmin

To access phpMyAdmin and phpPgAdmin in cPanel, follow these steps: Log in to your cPanel...

Accessing the Managed Team feature in cPanel

To access the Manage Team feature on TurnupHosting, follow these steps: Log in to cPanel by...

Accessing webmail clients directly

To provide users with direct access to a specific webmail client when they log in, you can...