Debian WheezyにTrac入れてみる

#aptitude install python python-pkg-resources python-setuptools
#easy_install genshi
#easy_install babel





user@Server:~/public_html$ mkdir trac
user@Server:~/public_html$ trac-admin /home/user/public_html/trac/ initenv
Creating a new Trac environment at /home/user/public_html/trac

Trac will first ask a few questions about your environment
in order to initialize and prepare the project database.

Please enter the name of your project.
This name will be used in page titles and descriptions.

Project Name [My Project]> user

Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).

Database connection string [sqlite:db/trac.db]>

Creating and Initializing Project
Installing default wiki pages
TracSyntaxColoring imported from /usr/local/lib/python2.7/dist-packages/Trac-1.0.1-py2.7.egg/trac/wiki/default-pages/TracSyntaxColoring
(ry
TracWorkflow imported from /usr/local/lib/python2.7/dist-packages/Trac-1.0.1-py2.7.egg/trac/wiki/default-pages/TracWorkflow

                                                                                                                                        • -

Project environment for 'user' created.

You may now configure the environment by editing the file:

/home/user/public_html/trac/conf/trac.ini

If you'd like to take this new project environment for a test drive,
try running the Trac standalone web server `tracd`:

tracd --port 8000 /home/user/public_html/trac

Then point your browser to http://localhost:8000/trac.
There you can also browse the documentation for your installed
version of Trac, including information on further setup (such as
deploying Trac to a real web server).

The latest documentation can also always be found on the project
website:

http://trac.edgewall.org/

Congratulations!

次にwebから利用するための設定

#aptitude install libapache2-mod-wsgi

下記を/etc/apache2/sites-available/下の設定ファイルに書き込む



WSGIScriptAlias /trac /home/user/public_html/trac/trac.wsgi
WSGIDaemonProcess user.al2o3.info user=user group=user
WSGIProcessGroup user.al2o3.info

WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all