Category: "Co-Lo Server"

Pages: 1 3

2009/08/18

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

Install notes for Planner Plugin for Trac

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

  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.

http://trac-hacks.org/wiki/DoxygenPlugin

# cd /usr/local/src/
# svn co http://trac-hacks.org/svn/doxygenplugin/ doxygenplugin

As per the install notes from the above link:

# cd doxygenplugin/0.11/
# python setup.py bdist_egg

# cp dist/TracDoxygen-0.11.0.2-py2.6.egg /var/lib/trac/sample/plugins/.

2009/08/17

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

Gentoo Trac Upgrade steps

# webapp-config -U -h sample.com/trac.sample.com trac 0.11.5

then there was a note to read this:

http://projects.edgewall.com/trac/wiki/TracUpgrade

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 24.84.197.206] (13)Permission denied: exec of '/var/www/torbensorensen.com/trac.torbensorensen.com/cgi-bin/trac.cgi' failed
[Mon Aug 17 16:35:57 2009] [error] [client 24.84.197.206] 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:

http://projects.edgewall.com/trac/wiki/TracUpgrade

# trac-admin /var/lib/trac/sample/ upgrade
/usr/lib/python2.6/site-packages/MySQLdb/__init__.py:34: 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.):

INSTALL:

UPGRADE

webapp-config -U -h sample.com/subdomain.sample.com [PROGRAM] [VERSION}

2009/05/27

1 3

April 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          
 << <   > >>
Entries concerning computer ...

Search

  XML Feeds

blogging software