Re: [Trac] Re: Deploy trac with error
Getting it, it worked! Thank you for your patience and availability! Em sábado, 11 de novembro de 2023 às 14:55:38 UTC-3, MARCOS GONÇALVES TEIXEIRA escreveu: > > delivery@deli:~$ a2query -s > trac (enabled by site administrator) > delivery@deli:~$ sudo a2dissite 000-default > Site 000-default already disabled > > delivery@deli:~$ cat /etc/apache2/sites-available/trac.conf > > ServerAdmin trac@localhost > > DocumentRoot /var/trac > Alias / /var/www/trac/htdocs/common > Alias /trac/chrome/common /var/www/trac/htdocs/common > Alias /trac/chrome/site /var/www/trac/htdocs/site > > SetEnv trac.env_path /var/trac > > Options +FollowSymLinks +MultiViews > AllowOverride None > Require all granted > > > > WSGIDaemonProcess trac python-home=/usr/local/venv/trac > display-name=%{GROUP} > WSGIScriptAlias /trac /var/www/trac/cgi-bin/trac.wsgi > process-group=trac application-group=%{GLOBAL} > > > AllowOverride None > WSGIApplicationGroup %{GLOBAL} > > Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch > Require all granted > > > > AuthType Basic > AuthName "Trac" > AuthUserFile /etc/apache2/.htpasswd > Require valid-user > > > > > > delivery@deli:~$ curl http://20.195.171.248/trac/chrome/common > > > 404 Not Found > > Not Found > The requested URL was not found on this server. > > Apache/2.4.52 (Ubuntu) Server at 20.195.171.248 Port 80 > > delivery@deli:~$ curl http://20.195.171.248/trac > > > 404 Not Found > > Not Found > The requested URL was not found on this server. > > Apache/2.4.52 (Ubuntu) Server at 20.195.171.248 Port 80 > > > if 20.195.171.248/ i see only archives in folder... > Em sábado, 11 de novembro de 2023 às 04:01:30 UTC-3, Jun Omae escreveu: > >> Check enabled sites in Apache using "a2query -s" command. >> If 000-default is still enabled, try to disable it or add "ServerName >> server-name" to in trac.conf and access with the >> server name. >> >> On Sat, Nov 11, 2023 at 12:40 PM MARCOS GONÇALVES TEIXEIRA >> wrote: >> > >> > Ok, after adjusts: >> > delivery@deli:~$ cat /var/www/trac/cgi-bin/trac.wsgi >> > #!/usr/bin/python3 >> > # -*- coding: utf-8 -*- >> > # >> > # Copyright (C) 2008-2023 Edgewall Software >> > # Copyright (C) 2008 Noah Kantrowitz >> > # All rights reserved. >> > # >> > # This software is licensed as described in the file COPYING, which >> > # you should have received as part of this distribution. The terms >> > # are also available at https://trac.edgewall.org/wiki/TracLicense. >> > # >> > # This software consists of voluntary contributions made by many >> > # individuals. For the exact contribution history, see the revision >> > # history and logs, available at https://trac.edgewall.org/log/. >> > # >> > # Author: Noah Kantrowitz >> > from trac.web.main import dispatch_request as application >> > --- >> > delivery@deli:~$ cat /etc/apache2/sites-available/trac.conf >> > >> > ServerAdmin webmaster@localhost >> > DocumentRoot /var/trac >> > Alias / /var/www/trac/htdocs/common >> > Alias /trac/chrome/common /var/www/trac/htdocs/common >> > Alias /trac/chrome/site /var/www/trac/htdocs/site >> > >> > SetEnv trac.env_path /var/trac >> > >> > Options +FollowSymLinks +MultiViews >> > AllowOverride None >> > Require all granted >> > >> > >> > >> > WSGIDaemonProcess trac python-home=/usr/local/venv/trac >> display-name=%{GROUP} >> > WSGIScriptAlias /trac /var/www/trac/cgi-bin/trac.wsgi >> process-group=trac application-group=%{GLOBAL} >> > >> > >> > AllowOverride None >> > WSGIApplicationGroup %{GLOBAL} >> > >> > Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch >> > Require all granted >> > >> > >> > >> > AuthType Basic >> > AuthName "Trac" >> > AuthUserFile /etc/apache2/.htpasswd >> > Require valid-user >> > >> > >> > >> > >> > browser: http://20.195.171.248/trac/chrome/common >> > response: 404 Not Found T.T >> > Em sábado, 11 de novembro de 2023 às 00:17:20 UTC-3, Jun Omae escreveu: >> >> >> >> On Sat, Nov 11, 2023 at 11:31 AM MARCOS GONÇALVES TEIXEIRA >> >> wrote: >> >> > trac.wsgi: >> >> > #!/usr/bin/python3 >> >> > >> >> > >> >> > # Author: Noah Kantrowitz >> >> > import os >> >> > import sys >> >> > sys.path.insert(0, '/usr/local/venv/trac') >> >> > os.environ['TRAC_ENV'] = '/usr/local/venv/trac' >> >> > >> >> > from trac.web.main import dispatch_request as application >> >> > >> >> > #SetEnv PYTHONHOME /usr/local/venv/trac/bin/python3 >> >> > #SetEnv PYTHONPATH /var/trac >> >> > os.environ['PYTHONHOME'] = '/usr/local/venv/trac/bin/python3' >> >> > os.environ['PYTHONPATH'] = '/usr/local/venv/trac' >> >> > #import dispatch_request >> >> > def application(environ, start_response): >> >> > environ['trac.env_path'] = '/var/trac' >> >> > return trac.web.main.dispatch_request(environ,
Re: [Trac] Re: Deploy trac with error
delivery@deli:~$ a2query -s trac (enabled by site administrator) delivery@deli:~$ sudo a2dissite 000-default Site 000-default already disabled delivery@deli:~$ cat /etc/apache2/sites-available/trac.conf ServerAdmin trac@localhost DocumentRoot /var/trac Alias / /var/www/trac/htdocs/common Alias /trac/chrome/common /var/www/trac/htdocs/common Alias /trac/chrome/site /var/www/trac/htdocs/site SetEnv trac.env_path /var/trac Options +FollowSymLinks +MultiViews AllowOverride None Require all granted WSGIDaemonProcess trac python-home=/usr/local/venv/trac display-name=%{GROUP} WSGIScriptAlias /trac /var/www/trac/cgi-bin/trac.wsgi process-group=trac application-group=%{GLOBAL} AllowOverride None WSGIApplicationGroup %{GLOBAL} Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Require all granted AuthType Basic AuthName "Trac" AuthUserFile /etc/apache2/.htpasswd Require valid-user delivery@deli:~$ curl http://20.195.171.248/trac/chrome/common 404 Not Found Not Found The requested URL was not found on this server. Apache/2.4.52 (Ubuntu) Server at 20.195.171.248 Port 80 delivery@deli:~$ curl http://20.195.171.248/trac 404 Not Found Not Found The requested URL was not found on this server. Apache/2.4.52 (Ubuntu) Server at 20.195.171.248 Port 80 if 20.195.171.248/ i see only archives in folder... Em sábado, 11 de novembro de 2023 às 04:01:30 UTC-3, Jun Omae escreveu: > Check enabled sites in Apache using "a2query -s" command. > If 000-default is still enabled, try to disable it or add "ServerName > server-name" to in trac.conf and access with the > server name. > > On Sat, Nov 11, 2023 at 12:40 PM MARCOS GONÇALVES TEIXEIRA > wrote: > > > > Ok, after adjusts: > > delivery@deli:~$ cat /var/www/trac/cgi-bin/trac.wsgi > > #!/usr/bin/python3 > > # -*- coding: utf-8 -*- > > # > > # Copyright (C) 2008-2023 Edgewall Software > > # Copyright (C) 2008 Noah Kantrowitz > > # All rights reserved. > > # > > # This software is licensed as described in the file COPYING, which > > # you should have received as part of this distribution. The terms > > # are also available at https://trac.edgewall.org/wiki/TracLicense. > > # > > # This software consists of voluntary contributions made by many > > # individuals. For the exact contribution history, see the revision > > # history and logs, available at https://trac.edgewall.org/log/. > > # > > # Author: Noah Kantrowitz > > from trac.web.main import dispatch_request as application > > --- > > delivery@deli:~$ cat /etc/apache2/sites-available/trac.conf > > > > ServerAdmin webmaster@localhost > > DocumentRoot /var/trac > > Alias / /var/www/trac/htdocs/common > > Alias /trac/chrome/common /var/www/trac/htdocs/common > > Alias /trac/chrome/site /var/www/trac/htdocs/site > > > > SetEnv trac.env_path /var/trac > > > > Options +FollowSymLinks +MultiViews > > AllowOverride None > > Require all granted > > > > > > > > WSGIDaemonProcess trac python-home=/usr/local/venv/trac > display-name=%{GROUP} > > WSGIScriptAlias /trac /var/www/trac/cgi-bin/trac.wsgi process-group=trac > application-group=%{GLOBAL} > > > > > > AllowOverride None > > WSGIApplicationGroup %{GLOBAL} > > > > Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch > > Require all granted > > > > > > > > AuthType Basic > > AuthName "Trac" > > AuthUserFile /etc/apache2/.htpasswd > > Require valid-user > > > > > > > > > > browser: http://20.195.171.248/trac/chrome/common > > response: 404 Not Found T.T > > Em sábado, 11 de novembro de 2023 às 00:17:20 UTC-3, Jun Omae escreveu: > >> > >> On Sat, Nov 11, 2023 at 11:31 AM MARCOS GONÇALVES TEIXEIRA > >> wrote: > >> > trac.wsgi: > >> > #!/usr/bin/python3 > >> > > >> > > >> > # Author: Noah Kantrowitz > >> > import os > >> > import sys > >> > sys.path.insert(0, '/usr/local/venv/trac') > >> > os.environ['TRAC_ENV'] = '/usr/local/venv/trac' > >> > > >> > from trac.web.main import dispatch_request as application > >> > > >> > #SetEnv PYTHONHOME /usr/local/venv/trac/bin/python3 > >> > #SetEnv PYTHONPATH /var/trac > >> > os.environ['PYTHONHOME'] = '/usr/local/venv/trac/bin/python3' > >> > os.environ['PYTHONPATH'] = '/usr/local/venv/trac' > >> > #import dispatch_request > >> > def application(environ, start_response): > >> > environ['trac.env_path'] = '/var/trac' > >> > return trac.web.main.dispatch_request(environ, start_response) > >> > > >> > >> No need to insert sys.path and set to os.environ[...]. > >> The following content is enough: > >> > >> > >> #!/usr/bin/python3 > >> from trac.web.main import dispatch_request as application > >> > >> > >> > my trac.conf in /etc/apache2/sites-available: > >> > > >> > > >> > DocumentRoot /var/trac > >> > > >> > Alias /chrome/common /var/www/trac/htdocs/common > >> > Alias /chrome/site /var/www/trac/htdocs/site > >> > >> Incorrect.
[Trac] Problem with accountmanager and xmlrpc
Hi, in the past (<= Trac 1.4), I had to use an additional plugin (httpauth) to make xmlrpc work despite accountmanager being active. However, for Trac 1.6 this plugin seems to be gone (or not ported to Python 3). I understood, that accountmanager has been changed in a way that httpauth is not needed anymore, but maybe I'm wrong. Anyone using accountmanager and xmlrpc together successfully? How? Cheers -- 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 trac-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/87msvk5xhj.fsf%40fama.lan.