Doxygen Trac plugin install notes » |
this plugin looks like this:
http://virtual-planner.palepurple.co.uk/wiki/UserGuide
set up a new vhost directory
# cd /vaw/www/
# mkdir sample.com
# mkdir sample.com/htdocs
# mkdir sample.com/cgi-bin
# mkdir sample.com/secure
# mkdir sample.com/logs
# mkdir sample.com/code
grab the planner code
# cd sample.com/code
# svn co http://virtual-planner.palepurple.co.uk/svn/branches/planner planner
edit the config as per:
http://virtual-planner.palepurple.co.uk/wiki/django-installation
# nano planner/settings.py
# python manage.py syncdb
install this too: http://trac-hacks.org/wiki/TimingAndEstimationPlugin
[many annoying errors later]
First, I didn't have Django installed, so I have to install that, as well as mod_python needed to be installed and working in Apache, and then I had to make several modifications to my Apache vhost file, included below, which you will probably have to customize to your server ...
<virtualhost *:80> ServerName planner.sample.com ServerAlias www.planner.sample.com ServerAdmin sample@gmail.com # set up where to find the HTML files DocumentRoot /var/www/sample.com/planner.sample.com/htdocs # set the default file(s) to use as the default main index page DirectoryIndex index.html index.htm index.php # allow for .htaccess files to work, etc <directory /var/www/sample.com/planner.sample.com/htdocs> AllowOverride All Options All Order allow,deny Allow from all </directory> <directory /var/www/sample.com/planner.sample.com/code/planner> AllowOverride All Options All Order allow,deny Allow from all </directory> # set up the cgi-bin directory to execute file ScriptAlias /cgi-bin/ /var/www/sample.com/planner.sample.com/cgi-bin/ <directory "/var/www/sample.com/planner.sample.com/cgi-bin/"> AllowOverride None Options None Order allow,deny Allow from all </directory> # set up the log files ErrorLog /var/www/sample.com/planner.sample.com/logs/error_log CustomLog /var/www/sample.com/planner.sample.com/logs/access_log combined # SPECIFIC to Trac Planner plugin using Django <location> SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "['/var/www/sample.com/planner.sample.com/code'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE planner.settings # since I use a subdomain, having this line like this causes a strange Django error - comment out # PythonOption django.root / PythonDebug On SetEnv PYTHON_EGG_CACHE /var/www/.python-eggs </location> # these map the django static stuff and our custom static stuff to Apache (so they don't go through Django/mod_python) # if you change these, you'll need to edit the settings.py file to make them match. Alias /static /var/www/sample.com/planner.sample.com/code/planner/static Alias /admin/media /usr/share/python-support/python-django/django/contrib/admin/media <location /static> SetHandler None </location> <location /admin/media> SetHandler None </location> # torben fix 2009 august - gentoo python layout is different <directory "/usr/lib/python2.6/site-packages/django/contrib/admin/media"> AllowOverride All Options All Order allow,deny Allow from all </directory> Alias /media /usr/lib/python2.6/site-packages/django/contrib/admin/media <location /media> SetHandler None </location> </virtualhost>
Then install the trac-python-plugin fromt he same page above:
http://virtual-planner.palepurple.co.uk/wiki/django-installation
Then to finish up, get the 'automagic' script to run:
# chmod +x build.sh
# chmod +x configure.py
And set the proper final path in build.sh:
# nano build.sh
[make last line change to (something like) this:]
cp dist/*.egg /var/lib/trac/sample/plugins
And then follow the last steps on the page.
# ./configure.py
This post has 13 feedbacks awaiting moderation...