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

Python and Trac Problems

P

paulbain

Guest
Hi guys. I'm having trouble getting python to server on my server. I have enabled python under the domain setup.

I have added the following directives to my vhost.conf for the domain I'm using:

Code:
<Location /mpinfo>
   SetHandler mod_python
   PythonHandler mod_python.testhandler
</Location>



<Location /trac>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
          Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
   PythonOption TracEnv /var/www/vhosts/unverified.co.uk/subdomains/svn/trac/drinksbuddy
   PythonOption TracUriRoot /trac/
</Location>

The mpinfo location is to test python and I just get a 404 Not Found.

I think I need to set some directives to allow python to work but I have no idea what!

I have the following in the httpd.include file:
Code:
        <IfModule mod_python.c>
        <Files ~ (\.py$)>
                SetHandler python-program
                PythonHandler   mod_python.cgihandler
        </Files>
        </IfModule>
</Direcotry>
 
Back
Top