在linux平台下安裝trac

來源:互聯網
上載者:User


1, http://trac.edgewall.org/ 
 2.安裝 apache,python, mod_wsgi,mysql   www.2cto.com  3,安裝trac (我的是0.12) tar -zxvf  你下載的安裝包 cd trac安裝目錄 python setup.py install  4,建立工程  trac-admin 工程的位置(我的是/var/www/html/first initenv 輸入工程名字和資料庫連接串  產生工程的web網站所需的htdocs和cgi/wsgi等指令碼等檔案。  trac-admin /var/www/html/first deploy /var/www/html/tmp/first 拷貝到工程目錄 cp -r /var/www/html/tmp/first/  /var/www/html/first/   www.2cto.com  
 5。配置apache 配置使用者 $ htpasswd -c /somewhere/trac.htpasswd admin New password: <type password> Re-type new password: <type password again> Adding password for user admin  開啟httpd.conf 需要修改的項為 DocumentRoot    你的web目錄 (我的是/var/www/html)  加wsgi指令碼的路徑處理: WSGIScriptAlias /var/www/html/first/cgi-bin/trac.wsgi <Directory /var/www/html/first/cgi-bin>     WSGIApplicationGroup %{GLOBAL}     Order deny,allow     Allow from all </Directory>  加使用者驗證  <LocationMatch "/first/login">   AuthType Basic   AuthName "Trac"   AuthUserFile /var/www/html/trac.htpasswd   Require valid-user </LocationMatch>   www.2cto.com  重啟apache apachectl restart  開啟瀏覽器:http://195.12.11.11/first 你可能會出現 類似 .egg-cache的目錄不能建立的提示 我是直接在/var/www/html/first下面建立了此目錄 ,授予它最大許可權 下載就可以登陸進去了 
 6.授予admin系統管理權限 trac-admin /var/www/html/first permission add admin TRAC_ADMIN
  作者 ximenyiren

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.