ubuntu trac 基于使用 mysql svn

Posted by bower on March 30, 2010
mysql, ubuntu server

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

http://nakedracer.com.au/prostoiew/8347 在Ubuntu下安装Trac十分简单,只需要输入下列命令即可:
sudo apt-get install trac

site de rencontres skyrock 设置访问Subversion版本库的用户和用户组

watch
设置Subversion版本库的访问权限也有很多方法,通常的做法是,创建一个名为“Subversion”的组,并将该组拥有访问Subversion版本库所在的目录的权限,同时将需要访问Subversion版本库的用户加入到这个组中(在这里添加的是自己的本地用户和Apache2用户):

sudo groupadd subversion
sudo usermod -G subversion -a firehare
sudo usermod -G subversion -a www-data

rencontres mst 创建Subversion版本库并设置访问权限

follow link
创建Subversion版本库目录十分简单,只需要输入下列命令即可:

sudo mkdir -p /home/svn/repo
sudo chown -R root:subversion /home/svn/repo
sudo chmod -R g+rws /home/svn/repo
sudo svnadmin create /home/svn/repo

http://podzamcze-dobczyce.pl/restauracja/onas_atrakcjeregionu.html 设置MySQL

source url A proper database can be created with any MySQL client, like this:
CREATE DATABASE trac DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

To check character set settings for your database, issue the following commands:

mysql> USE trac;

Database changed

mysql> SHOW VARIABLES WHERE variable_name IN (‘character_set_database’, ‘collation_database’);

+————————+———-+

| Variable_name          | Value    |

+————————+———-+

| character_set_database | utf8     |

| collation_database     | utf8_bin |

+————————+———-+

2 rows in set (0.01 sec)

mysql>

demo come giocare in borsa Usually, you also want to create a user and give this user access to the database created above:
GRANT ALL ON trac.* TO tracuser@localhost IDENTIFIED BY ‘password’;

http://colombiatourstickets.com/?viowq=site-de-rencontre-non-payant&978=6d The connection string will then be:
mysql://tracuser:password@localhost/trac

see 当然一定要安装 mysql mod-python python-mysqldb

http://metodosalargarpene.es/ebioer/4437

创建配置Trac环境 tribu rencontre homme blanc

Trac用目录和数据库来储存项目信息, 叫做”环境“。一个新的Trac环境是通过使用trac-admin创建出来的,同Subversion一样,Trac环境可以放至在任意位置,由于Trac是个Web应用,是通过Apache来访问的,所以通常将其设在/var/www目录中。具体命令及设置如下:

cd /var/www
sudo mkdir trac
sudo chown -R www-data:www-data trac
sudo -u www-data trac-admin trac initenv
Project Name [My Project]> cmet (在这里输入你的项目名称)
Database connection string [sqlite:db/trac.db]>mysql://tracuser:password@localhost/trac输入MySQL数据库的位置)
Repository type [svn]>
Path to repository [/path/to/repos]> /home/svn/repo (在这里输入你的项目对应的Subversion地址,注意Trac默认情况下只能访问本机的Subversion仓库,在上面填写地址时不能加”file://”前缀。)
Templates directory [/usr/share/trac/templates]>/usr/share/pyshared/trac/templates

配置Apache

sudo apt-get install libapache2-mod-python libapache2-mod-python-doc
sudo a2enmod python

sudo vi /etc/apache2/site-available/trac

<VirtualHost *:80>
ServerName trac.firehare.name
ServerAdmin ubuntu.firehare@gmail.com
DocumentRoot /var/www/myproject
<Location />
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/www/trac/
PythonOption TracUriRoot /
SetEnv PYTHON_EGG_CACHE /tmp
</Location>
<Location /login>
AuthType Basic
AuthName “CMET_WZU Trac Server”
AuthUserFile /var/www/trac/.htpasswd
Require valid-user
</Location>

ErrorLog “/var/log/apache2/trac_errors.log”
CustomLog “/var/log/apache2/trac_accesses.log” common
</VirtualHost>

设置Trac的访问权限
sudo htpasswd -c /var/www/trac/.htpasswd firehare

sudo a2ensite trac
sudo /etc/init.d/apache2 restart

分享到:人人网开心网腾讯微博新浪微博豆瓣分享腾讯空间百度搜藏腾讯书签

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word