Articles of trac

lighttpd 1.5反向代理到trac

我运行lighttpd 1.5刚刚编译closuressvn。 我有一个Trac守护进程监听8000端口,我想代理所有匹配^http://xx.xx.xx.xx/trac(*.)请求到守护进程。 这是它在我的.conf中的样子: $HTTP["host"] == "xx.xx.xx.xx" { $HTTP["url"] =~ "^/trac" { proxy-core.balancer = "round-robin" proxy-core.protocol = "http" proxy-core.backends = ( "127.0.0.1:8000" ) proxy-core.rewrite-response = ( "Location" => ( "^http://xx\.xx\.xx\.xx/(.*)" => http://xx.xx.xx.xx/trac/$1" ), ) proxy-core.rewrite-request = ( "_uri" => ( "^/trac/?(.*)" => "/$1" ), "Host" => ( ".*" => "xx.xx.xx.xx" ), ) } xx.xx.xx.xx是可以公开访问的IP,在端口80上。 部分原因是因为当我浏览到http://xx.xx.xx.xx/trac我在Trac中看到了我的可用项目(即由127.0.0.1:8000/服务的页面),而其他任何不以/ […]

Trac问题:AttributeError:找不到名为“WikiModule”的“IRequestHandler”接口的实现

这个问题已经在不同的邮件列表中多次描述过了,但是还没有发布解决scheme。 我原来的设置如下(但同时我在Windows 7上有一个更简单的): Ubuntu的服务器与Apache 2.2和Python 2.7 用virtualenv创build的virutal python环境 在虚拟环境中使用pip按顺序安装了babel,genshi和trac Trac似乎与tracd运行良好,但通过Apache访问时,我在官方trac错误页面中得到以下错误: AttributeError:找不到名为“WikiModule”的“IRequestHandler”接口的实现 堆栈跟踪看起来像这样: Traceback (most recent call last): File "/srv/trac/python-environment/lib/python2.5/site-packages/Trac-0.13dev_r10668-py2.5.egg/trac/web/main.py",line 473, in _dispatch_request dispatcher.dispatch(req) File "/srv/trac/python-environment/lib/python2.5/site-packages/Trac-0.13dev_r10668-py2.5.egg/trac/web/main.py", line 154, in dispatch chosen_handler = self.default_handler File "/srv/trac/python-environment/lib/python2.5/site-packages/Trac-0.13dev_r10668-py2.5.egg/trac/config.py", line 691, in __get__ self.section, self.name)) AttributeError: Cannot find an implementation of the "IRequestHandler" interface named "WikiModule". Please update the option […]

trac:在浏览器closures后保存trac_auth cookie

有没有办法设置trac_auth cookie应该存活多长时间,这样即使在closures浏览器之后,我也可以保持login状态? 从我现在可以看到,它被设置为在浏览器退出时被删除。 我使用Trac的标准安装。

Trac 0.12.2在Centos 5.6上找不到正确的apacheconfiguration

在过去的几天里,我一直在试图让Apache在CentOS 5.6上为Trac服务。 缺less的链接几乎可以肯定是Apache的configuration。 我知道这一点,因为我可以通过tracd -s –port 8080 /path/to/trac/project在本地运行tracd -s –port 8080 /path/to/trac/project 。 我有mod_python和mod_wsgi安装。 Trac的所有依赖关系都已到位。 Trac是使用easy_install安装的。 我已经使用trac-admin /path/to/trac/project initenv成功创build了trac环境。 我知道mod_wsgi比mod_python更mod_python因为它仍然被开发并且具有性能上的优势,但是我尝试过的最新configuration使用了mod_python 。 这是因为我可以find的所有完整的指南使用mod_python和性能不是问题。 而且,任何人都不可能试图修补这个服务器(因为我是一个学生,不会再来这里)。 我最近的尝试(从/etc/httpd/conf/httpd.conf) <virtualHost *:80> ServerName **IP of Server** <location /> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnv /path/to/trac/project PythonOption TracUriRoot / </location> </virtualHost> 任何帮助find神奇的configuration,使阿帕奇为我工作是我真的很感激的东西。 如果使用mod_wsgi而不是mod_python话,效果会更好。 编辑:我发布后,我发现了BitNami Trac分布 。 它在自己的目录中安装了所有需要的软件,并完成了所有的configuration工作。

是否有Trac 0.12版本的ThemeEnginePlugin?

我正在设置Trac 0.12.2并寻找ThemeEnginePlugin。 我用PyOrgTheme试用了0.11的插件版本,也是0.11。 当我尝试select替代主题时,页面显示python.org主题描述,但箭头之间的标签(在主题pipe理页面中)保持“默认”状态。 我使用正确的版本? 如果不是的话,现在有没有可用的版本0.12的插件?

在不同的服务器上将Trac迁移到Redmine

我有两个服务器 – 一个使用trac,一个使用新的Redmine安装。 trac服务器上有很多有价值的信息(wiki页面等),我想要到达Redmine服务器。 我已经发现这个迁移脚本在线,但是这是假设两个服务在同一台服务器上。 我试图通过两个不同的服务器传输这些信息。 我会说两台服务器都可以在networking上互相看到,但是跨networking迁移似乎不是一件容易的事情。 有什么build议吗?

在debian服务器上运行trac – 向trac.ini写入错误

我有trac在我的debian服务器上运行,并使用mod_wsgi通过apache进行设置。 现在我已经把所有东西都设置好了,除非我永远不会写入通过网站的项目trac.ini文件。 我已经将ini文件设置为可写: sudo chmod +x trac.ini 而且我也使它属于www-data : ls -l -rwxrwxrwx 1 www-data admin 5744 Aug 2 00:00 trac.ini 在我刚刚安装的类似服务器上,同样的调用给了我这个: ls -l -rwxrwxrwx 1 www-data www 5904 Mar 20 11:00 trac.ini 我明显错过了一些基本的东西,但不能得到它的工作!

Trac独立阅读htpasswd文件,但仍然说authentication信息不可用

我有一些问题正确configuration我的trac服务器。 我在Synology DS411上运行Tracd 0.12.1。 我已经按照这个指南 ,我可以浏览Trac的问题,但如果我尝试login,它告诉我以下错误: Trac错误 身份validation信息不可用。 请参阅安装文档。 日志文件说的相同: 2012-10-24 10:11:04,617 Trac[main] DEBUG: Dispatching <Request "GET '/login'"> 2012-10-24 10:11:04,624 Trac[api] INFO: Synchronized '' repository in 0.01 seconds 2012-10-24 10:11:04,627 Trac[main] WARNING: HTTPInternalError: 500 Trac Error (Authentication information not available. Please refer to the <a href="/redaktion/wiki/TracInstall#ConfiguringAuthentication" title="Configuring Authentication">installation documentation</a>.) 2012-10-24 10:11:04,628 Trac[session] DEBUG: Retrieving session […]

Trac 1.0.1的新安装拒绝使用FastCGI运行

我有一个新安装的服务器运行Debian挤压 。 我已经使用easy_install安装了Python 2.6.6和Trac 1.0.1 。 开始使用tracd时Trac运行良好。 现在我正在尝试使用FastCGIconfigurationlighttpd来运行Trac。 我正在使用FastCGI连接的以下configuration: fastcgi.server = ( "/project" => ( ( "socket" => "/tmp/trac-fastcgi-first.sock", "bin-path" => "/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/web/fcgi_frontend.py", "check-local" => "disable", "bin-environment" => ("TRAC_ENV" => "/var/trac/project") ) ) ) 当我使用lighttpd -D -f /etc/lighttpd/lighttpd.conf启动lighttpd时,它只是打印: No such file or directory并退出。 如果我使用/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/web/fcgi_frontend.py直接运行后端脚本,我认为它与lighttpd的configuration没有任何关系/usr/local/lib/python2.6/dist-packages/Trac-1.0.1-py2.6.egg/trac/web/fcgi_frontend.py ,它只是打印: No such file or directory 。 有没有人有同样的问题? 我甚至从哪里开始寻找问题?

Trac / Apache显示脚本内容(WSGI)

我正在苦苦做一个新的Trac 1.0.3安装(在通过easy_install安装相同的问题之后,从源码安装)。 Debian 7.8 Apache 2.2.22 Python 2.7.3 Genshi 0.6 sqlite 3.7.13 WSGI 3.3 我在/var/trac创build了Trac环境, /var/trac /var/trac/cgi-bin保存了trac.wsgi 。 我已经更新了Apache … LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so和我的网站的conf … WSGIScriptAlias /trac /var/trac/cgi-bin/trac.wsgi <Directory /var/trac/cgi-bin> WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all </Directory> <Location /trac> Order deny,allow Allow from all </Location> 我的/var/trac/log/trac.log (这是空的)在trac.iniconfiguration… [logging] log_file = /var/trac/log/trac.log log_level = DEBUG log_type […]