Skip to content

How to create a Python application

We support deploying Python applications via mod_passenger through the Setup Python App interface in cPanel. Search for “Python” in the cPanel search bar to find it:

310_blobid0.png

The interface supports environment variables, start/stop/restart controls, configuration file management, and bulk module installation via requirements files.

  1. Click Create Application:

    313_blobid1.png

  2. Choose your desired Python version.

  3. Set the Application Root directory (preferably within your domain’s home directory, e.g., /home/username/public_html/python).

  4. Set the Application URL to the publicly accessible URL that corresponds to your Application Root.

  5. Leave Application Startup File and Application Entry Point empty unless your application requires specific values. The Passenger Log File defaults to your home directory.

  6. Click Create:

    312_blobid2.png

Once created, the application will appear under the Web Applications table:

311_blobid3.png

For available Python versions and CLI paths, see Available Python versions.