我剛剛使用easy_install-2.6
安裝了Trac 1.0
的副本,但在解密Install documentation的「Deploy Trac」部分時遇到問題。使用Apache - 'chrome'和'site'文件夾部署Trac 1.0 MIA
發行easy_install-2.6 Trac=1.0
後,我再創造了我的環境是這樣:
trac-admin /www/virtualhosts/trac initenv
接下來,我設置權限:
chown -R apache.apache /www/virtualhosts/trac/
我/etc/httpd/conf.d/trac.conf
文件看起來像這樣:
<Location /trac>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
# "/www/virtualhosts/svn/trac" is the folder you gave to trac-admin initenv earlier
PythonOption TracEnv /www/virtualhosts/trac
# "/trac" is the same as the Location above
PythonOption TracUriRoot /trac
# "/tmp" should be some writable temporary directory
SetEnv PYTHON_EGG_CACHE /tmp
# "trac" can be any string, but must be the same for all
# Trac instances on the same Apache install
PythonInterpreter trac
</Location>
<Location /trac/login>
AuthType Basic
AuthName "Trac User"
AuthUserFile /www/virtualhosts/trac/conf/trac.htpasswd
Require valid-user
</Location>
我重新加載了httpd配置:
service httpd reload
看到沒有錯誤,我通過將瀏覽器指向http://my.site/trac/
來打開Trac安裝。 Trac應用程序加載OK。
在文檔中有關於的部分部署Trac。這是我有點模糊的地方。我的trac安裝是否已經部署?或者這是一個額外的步驟?
其次,在映射靜態資源,文檔說明如何別名兩個目錄:chrome和site。在阿帕奇的ScriptAlias例如開頭的文檔提供以下命令:
trac-admin /var/trac/env deploy /path/to/trac/htdocs/common
我沒有我的系統上的/ var/TRAC/env的。除非在初始安裝Trac 1.0期間設置它,否則我找不到該目錄的創建位置。
有人可以解釋什麼需要發生,以獲得鉻/網站目錄創建?我知道這些是Apache的別名,但我沒有得到我剛纔引用的命令,其中trac-admin使用/ var/trac/env中的某些內容。該目錄不存在,所以我無法發出該部署命令。
我將需要chrome /站點別名才能安裝插件。
好的工作 - 我現在看到常見的和站點子文件夾。 –
,我看到cgi-bin下的'trac.wsgi'文件。謝謝。 –
好的 - 我放棄了。啓用mod_wsgi後,apache返回分段錯誤。如果這個項目是用PHP編寫的,而且它默認帶有一個WYSIWIG編輯器,我真的很喜歡。 –