• 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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