1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Python and Trac Problems

Discussion in 'Plesk for Linux - 8.x and Older' started by paulbain, Jun 16, 2007.

  1. paulbain

    paulbain Guest

    0
     
    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>
    
     
Loading...