tracを入れてみる(debianへ) -- 続きの続き_mod_python

2011/06/21

cat /etc/apache2/mods-enabled/python.load

LoadModule python_module /usr/lib/apache2/modules/mod_python.so

apache2ctl -M|grep python

 python_module (shared)
Syntax OK

ls -l /etc/apache2/sites-enabled/trac

lrwxrwxrwx 1 root root 34 Jun 21 03:51 /etc/apache2/sites-enabled/trac -> /etc/apache2/sites-available/tracd

cat /etc/apache2/sites-available/tracd

PythonOption PYTHON_EGG_CACHE /var/www/tracproj/egg-cache
<Location /tracproj>
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption  TracEnv /var/www/tracproj
  PythonOption  TracUriRoot      /tracproj
</Location>

tree -L 1 -p /var/www/tracproj

/var/www/tracproj
|-- [-rwxrwxr-x]  README
|-- [-rwxrwxr-x]  VERSION
|-- [drwxrwxr-x]  attachments
|-- [drwxrwxr-x]  conf
|-- [drwxrwxr-x]  db
|-- [drwxrwxr-x]  egg-cache
|-- [drwxrwxr-x]  htdocs
|-- [drwxrwxr-x]  log
|-- [drwxrwxr-x]  plugins
`-- [drwxrwxr-x]  templates

8 directories, 2 files

権限調整とかざっくり過ぎます。