• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Plesk with django and python

Caps

New Pleskian
Server operating system version
Windows server 2019
Plesk version and microupdate number
18.0.44
I have dedicated Windows server with plesk and i need to add django and python.
I tried to search in Internet and no one said if there is way to install them with plesk
And if i need to host app need django what can I do ?
 
No one in the community seems to have tried this.
It would be helpful if you could share your experiences.
 
Hi @IgorG , i tried this manual, which you recommend: https://support.plesk.com/hc/en-us/...-How-to-install-Django-applications-in-Plesk-

Plesk Obsidian
Version 18.0.52
with Rocky Linux 8.8 (Green Obsidian)
My target: Have to run Django and Python.

The manual says that you have to activate passenger module.
Problem is that in Tools & Settings -> Apache Web Server -> There is no passenger module ( RHEL = mod_passenger)
THERE IS NO PASSENGER MODULE.

How to solve this please?
Regards, Martin
 
I installed Python this way on
Plesk Obsidian
Version 18.0.52
with Rocky Linux 8.8 (Green Obsidian)

To install the Apache Passenger module on Rocky Linux 8.8, follow these steps. Note that you need root privileges (via sudo or su) to run these commands:

  1. Add EPEL Repository
Passenger is available in the Extra Packages for Enterprise Linux (EPEL) repository. If you haven't already added this repository, you can do so with:


sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf update

  1. Enable the Passenger Repository
Next, enable the Phusion's passenger repository:


sudo dnf install https://oss-binaries.phusionpassenger.com/yum/passenger/el/8/passenger-release.noarch.rpm

  1. Install Apache (If it's not installed)
Before installing the Apache module for Passenger, ensure you have Apache installed:


sudo dnf install httpd

  1. Install mod_passenger
Now, you can install the Passenger Apache module with the following command:


sudo dnf install -y mod_passenger

  1. Check the Installation
After the installation completes, verify that Passenger is installed correctly with the following command:


/usr/bin/passenger-config validate-install

And also check whether Apache correctly loads the Passenger module:


/usr/sbin/apachectl -t -D DUMP_MODULES

You should see passenger in the output list if it's correctly loaded.

  1. Start Apache
Finally, if Apache isn't already running, start it with:


sudo systemctl start httpd

And to ensure it starts on boot:


sudo systemctl enable httpd

Note: You should replace httpd with your actual Apache service name if it's different on your system.
 
Hi @IgorG , i tried this manual, which you recommend: https://support.plesk.com/hc/en-us/...-How-to-install-Django-applications-in-Plesk-

Plesk Obsidian
Version 18.0.52
with Rocky Linux 8.8 (Green Obsidian)
My target: Have to run Django and Python.

The manual says that you have to activate passenger module.
Problem is that in Tools & Settings -> Apache Web Server -> There is no passenger module ( RHEL = mod_passenger)
THERE IS NO PASSENGER MODULE.

How to solve this please?
Regards, Martin

If you install the Node.js Toolkit, Passenger will be installed.
 
Back
Top