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

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

apache2ctl -M|grep python

1
2
 python_module (shared)
Syntax OK

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

1
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

1
2
3
4
5
6
7
8
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
/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

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