> 1. Uninstall Trac in $HOME/.local
>
> pip uninstall -y Trac Jinja2
>
> 2. Create venv and install Trac to the venv
>
> sudo python3 -m venv /usr/local/venv/trac
> sudo /usr/local/venv/trac/bin/pip install Trac
>
> 3. Create Trac Environment
>
> sudo /usr/local/venv/trac/bin/trac-admin /var/trac
> sudo chown -R www-data:www-data /var/trac
4. Set the venv directory to python-home of WSGIDaemonProcess
WSGIDaemonProcess trac python-home=/usr/local/venv/trac display-name=%{GROUP}
5. Set location of the Trac Environment to trac.env_path using SetEnv
in <VirtualHost *:80>
<VirtualHost *:80>
...
SetEnv trac.env_path /var/trac
...
</VirtualHost>>
6. Put the following content to /var/www/trac/cgi-bin/trac.wsgi
====
#!/usr/bin/python3
from trac.web.main import dispatch_request as application
====
--
Jun Omae <[email protected]> (大前 潤)
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/trac-users/CAEVLMahAZwjvnpT3TFwthUSMk-CovVr0kmNDPcizAJ1W%2BC%3Dpvg%40mail.gmail.com.