Articles on: 🌍 Web Hosting
This article is also available in:

How do I deploy a Python application?

We let you deploy a Python application directly on your hosting, without having to worry about supervising anything. Technically, the deployment is based on Phusion Passenger.


  • Log in to your cPanel
  • In the "Software" section, choose "Setup Python App"
  • Click " Create Application"
  • Enter the information about your application:

  • Create: click here after filling in the form to create your application
  • Python version: choose the version of Python to use (feel free to contact our support if the one you need is missing)
  • Application root: enter the folder where your application's code is located (preferably use a folder different from the domain's folder where you will deploy your application)
  • Application URL: enter the URL where you want to deploy your application, optionally with a subdirectory (cPanel will create a .htaccess file at that location)
  • Application startup file: enter the WSGI file used to start your application, it must be present in the Application root folder
  • Application Entry Point: enter the function, contained in your WSGI file, that must be called to run the application (generally application).
  • Passenger log file: enter the location where you want to create the log file (optional but useful for debugging)
  • Environment variables - Add Variable: add the environment variables required by your application


Show more errors

The error page displayed in the web browser is, by default, fairly simple. You can enable a more advanced debugging mode in Phusion Passenger to display more errors by adding the following lines to the .htaccess file at the root of the domain (and, where applicable, the subdomain):


PassengerAppEnv development
PassengerFriendlyErrorPages on

My application won't start

If the Python application doesn't start, it means Phusion Passenger is unable to launch the application via your WSGI file, so either the path to the WSGI file is incorrect, or the function specified in Application Entry Point is incorrect.

Updated on: 17/07/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!