• 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.

Resolved Plesk and python

cipcip

Basic Pleskian
Hello guys,

I am trying to check and see if python is working on my hosting with a simple hello world script.

If I go to Tools & Settings -> Server Components I can see the following:
Code:
mod_python (Deprecated)    3.3.1-11ubuntu2

So I assume it is installed ?! I have read that Plesk Onyx dropped the support for python. Why is that ? :(
How to run, because now all I can see if I navigate to the .py file is the code, not the actual interpretation.

See here: https://tutorialindex.com/php/hello.py

Thank you,
Cristian
 
It is working, stupid mistake, I forgot to enable Python in the webhosting settings for the specific namespace.

Sample script for hello.py:

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>
"""
 
Back
Top