• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Run Python3.6 WebScripts?

UweP

Regular Pleskian
Hi all. My question is, how can I run Python3.6 Web Applications. What is the preferred way to do this with Plesk Onyx? I have mod_python but it's outdated. Thanks!
 
For Python support consider using mod_wsgi which is part of CentOS and also allows Python apps to run under Apache.
 
ah ok ;D thanks ;D im on debian 8. so i just install the mod_wsgi for apache, activate it somewhere in the panel and then i set a vhost configuration to use mod_wsgi? :)
 
I installed mod_wsgi, but how do I configure a vhost now? hm, trying to find documentation on this.
 
ok thanks, i checked the documentation, but is there any way i can enable it per vhost? eg. use / on vhost to serve the py file?
 
hm, it now says:
Template_Exception: Can not restart web server:

file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php

line: 109

code: 0
 
hm, it keeps saying bad gateway or internal server error when using this as the apache https configuration:

WSGIScriptAlias / /var/www/vhosts/mydomain.tld/s4.mydomain.de/vsearch4web.py

<Directory /var/www/vhosts/mydomain.tld/s4.mydomain.de/>
Order allow,deny
Allow from all
</Directory>
 
Last edited:
right now it keeps saying (when deactiving nginx) that i dont have permission to access that file also it wants to let me download if i access the file directly.
 
ok well i have two problems finding the instance of python the web interpreter is using. because i need to isntall flask on it.
 
Back
Top