Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

How to install Django applications in Plesk?

 
apacheapplications extensionscentoscentos 7debian

Question

How to install Django applications in Plesk?

Answer

While it is not yet officially supported, it can be configured manually at your own risk & will.
Vote for adding Python support to the Plesk on our UserVoice.

Note: Here and forth Python 3.x will be used as a target Python version.

Prepare the server

Connect to the server via SSH and apply the steps according to the installed Linux distribution:

Ubuntu and Debian

  1. Install Python 3:

    # apt install python3 python-is-python3 python3-venv

  2. Download and install the Python package manager from the official website:

    # wget https://bootstrap.pypa.io/get-pip.py
    # python3 get-pip.py

  3. Install the virtualenv package for python to separate the application's environment:

    # python3 -m pip install virtualenv

  4. Install Phusion Passenger, which will be used to run the application:

    # plesk installer --select-release-current --install-component passenger

  5. Log into Plesk

  6. Enable passenger module in Tools & Settings > Apache Web Server (in case the application should be served by Apache)

  7. Create a new service plan in Service Plans to preconfigure the web-server

  8. Set the following configuration in Web Server tab:

    • To have application served by Apache:

      • Enable Proxy mode, if it is present

      • Set the following Additional Apache directives (for HTTP and HTTPS) to enable processing:

        PassengerEnabled On

    • To have application served by nginx:

      • Disable Proxy mode

      • Set the following Additional nginx directives, to enable processing:

        passenger_enabled on;
        passenger_app_type wsgi;
        passenger_startup_file passenger_wsgi.py;

  9. Set the following configuration in Hosting Parameters tab:

    • Enable SSH access to the server shell under the subscription's system user. Set shell to /bin/bash

      Warning: Providing users with shell access might be insecure and may allow them to exploit OS vulnerabilities. Make sure that the server has the latest updates installed.

  10. Save the Service Plan and use it on subscriptions that should have Python applications installed

CentOS 7 and RHEL 7

  1. Add EPEL repository and install Python 3.6:

    # yum install -y epel-release
    # yum install -y python36

  2. Download and install the Python package manager from the official website:

    # wget https://bootstrap.pypa.io/pip/3.6/get-pip.py
    # python3.6 get-pip.py

  3. Install Phusion Passenger, which will be used to run the application:

    # plesk installer --select-release-current --install-component passenger

  4. Log into Plesk

  5. Enable passenger module in Tools & Settings > Apache Web Server (in case application should be served by Apache)

  6. Create a new service plan in Service Plans to preconfigure the web-server

  7. Set the following configuration in Web Server tab:

    • To have application served by Apache:

      • Enable Proxy mode, if it is present

      • Set the following Additional Apache directives (for HTTP and HTTPS) to enable processing:

        PassengerEnabled On

    • To have application served by nginx:

      • Disable Proxy mode

      • Set the following Additional nginx directives, to enable processing:

        passenger_enabled on;
        passenger_app_type wsgi;
        passenger_startup_file passenger_wsgi.py;

  8. Set the following configuration in the Hosting Parameters tab:

    • Enable SSH access to the server shell under the subscription's system user. Set shell to /bin/bash

      Warning: Providing users with shell access might be insecure and may allow them to exploit…

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Your Complete .htaccess Guide: Including .htaccess Basics and More

Read More »

NGINX vs Apache – Which Is the Best Web Server in 2024?

Read More »

Top Web Servers For Linux And Windows

Read More »
Knowledge Base

All websites hosted in Plesk are not accessible over HTTPS: 502 Bad Gateway or ERR_CONNECTION_REFUSED

Read More »

How to enable leverage browser caching for Apache in Plesk

Read More »

How to restart Apache service in Plesk for Linux

Read More »

Unable to start Plesk Premium Antivirus ( Dr.Web ) on Plesk server

Read More »

Hosting Wiki

  • Django
  • Cross Site Request Forgery (CSRF)
  • Cross-Origin Resource Sharing (CORS)
  • Server Redundancy
  • Postfix
  • Linux Containers
  • PostgreSQL
  • AMP
  • DDoS
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • Python
  • HTTP/3
  • HTTP/2
  • Hosting Control Panel
  • Plesk
  • NoSQL Database
  • Lighttpd
  • Apache Tomcat
  • NGINX
  • Apache
  • Web Server
  • DNS Server
  • SSH
  • Colocation Hosting
  • Reseller Hosting
  • Cloud Hosting
  • VPS Hosting
  • Dedicated Hosting
  • Shared Hosting
  • Free Hosting
  • Managed Hosting
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family