• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

Issue Hosting Python Django WebApp

Hello,

In the Plesk panel, go to the website you want to activate Python on, go to Hosting settings and just check the box that says: Python support.

To test it, create a file called index.py on your server with the following code:
Code:
#!/usr/bin/env python
print "Content-Type: text/html"
print
print """\
<html>
 <head>
  <title>Python - Hello World</title>
 </head>
 <body>
  Hello World
 </body>
</html>
"""

If you can see Hello World in your browser, it means that Python is working successfully :)
 
Hi @cipcip

thanks for your answer..

the problem is, i don't have there any Python support, just SSI, CGI, FastCGI and PHP.

i just tried it anyway but is not working..
 
Hello @FelixB

Do the following steps:

- Navigate to Tools & Settings
- PHP Settings
- Where you have this text at the top: "Select the PHP handlers you want to make available. You can install additional handlers using the Plesk Installer." click on Plesk Installer
- In Plesk Installer, go to Web Hosting -> Apache -> mod_python to see if you have it installed, if not, install it by clicking on the dropdown area and choose install.
- Click on the Continue button and follow the steps to the end to install.
 
I have it so maybe it depends because I have it as originally I had plesk 17.5 and updated to 17.8, but coming directly from 17.8, I do not know if it is there... apparently is not.

Check this thread: Python installation

More specifically, the answer from @IgorG that says to install it like so in your environment:

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

But even like so, I do not think that it will find it.... I do not know another way to do this, maybe Igor can help.
 
Back
Top