Pages: 1 3


  01:59:46 am, by   , 599 words  
Categories: Co-Lo Server

Install notes for Planner Plugin for Trac

this plugin looks like this:

set up a new vhost directory

# cd /vaw/www/
# mkdir
# mkdir
# mkdir
# mkdir
# mkdir
# mkdir

grab the planner code

# cd
# svn co planner

edit the config as per:

# nano planner/
# python syncdb

install this too:

[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>


    # set up where to find the HTML files
    DocumentRoot /var/www/

    # 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/>
        AllowOverride All
        Options All
        Order allow,deny
        Allow from all

    <directory /var/www/>
        AllowOverride All
        Options All
        Order allow,deny
        Allow from all

    # set up the cgi-bin directory to execute file
    ScriptAlias /cgi-bin/ /var/www/
    <directory "/var/www/">
         AllowOverride None
         Options None
         Order allow,deny
         Allow from all

    # set up the log files
    ErrorLog     /var/www/
    CustomLog    /var/www/ combined

    # SPECIFIC to Trac Planner plugin using Django
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        PythonPath "['/var/www/'] + 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

    # 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 file to make them match.
    Alias /static /var/www/
    Alias /admin/media /usr/share/python-support/python-django/django/contrib/admin/media
    <location /static>
       SetHandler None
    <location /admin/media>
        SetHandler None

 # 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
    Alias /media /usr/lib/python2.6/site-packages/django/contrib/admin/media
    <location /media>
        SetHandler None


Then install the trac-python-plugin fromt he same page above:

Then to finish up, get the 'automagic' script to run:

# chmod +x
# chmod +x

And set the proper final path in

# nano

[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.

# ./

  01:45:56 am, by   , 58 words  
Categories: Co-Lo Server

Doxygen Trac plugin install notes

I'm always looking to expand Trac's usefulness, as I get great development value from Trac.

# cd /usr/local/src/
# svn co doxygenplugin

As per the install notes from the above link:

# cd doxygenplugin/0.11/
# python bdist_egg

# cp dist/TracDoxygen- /var/lib/trac/sample/plugins/.


  01:55:45 pm, by   , 190 words  
Categories: Co-Lo Server

Gentoo Trac Upgrade steps

# webapp-config -U -h trac 0.11.5

then there was a note to read this:

But before I went there:

DAMN!! :no: now the site is down - typical.

Looking in Apache's error log, I see this:

[Mon Aug 17 16:35:57 2009] [error] [client] (13)Permission denied: exec of '/var/www/' failed
[Mon Aug 17 16:35:57 2009] [error] [client] Premature end of script headers: trac.cgi

Ok so what changed the permissions? Guess I'd better make this executable

# cd [whatever]/cgi-bin/
# chmod 774 trac.cgi

Ok now at leadt the site comes back up, and I can see my tickets etc.

Now, following these instructions:

# trac-admin /var/lib/trac/sample/ upgrade
/usr/lib/python2.6/site-packages/MySQLdb/ DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
Database is up to date, no upgrade necessary.

Since the "DeprecationWarning" is just a warning (because I recently upgraded to Python 2.6, it seems) it can be safely ignored, and I'll move on ...

# trac-admin /var/lib/trac/sample/ wiki upgrade
# trac-admin /var/lib/trac/sample/ resync

  01:22:59 pm, by   , 65 words  
Categories: Co-Lo Server

Gentoo webapp-config general notes

Webapp-config is a Gentoo specific utility to aid in the installing and upgrading of Web-Based software, like Trac, PhpMyAdmin, B2Evolution(this blog's software), etc.

These are my quick notes (note my vhosting setup in Apache is probably different than yours, so you may need to change these lines to fit your situation.):



webapp-config -U -h [PROGRAM] [VERSION}


1 3

July 2024
Mon Tue Wed Thu Fri Sat Sun
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
 << <   > >>


Entries concerning computer ...


  XML Feeds

blog software