• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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