Edgewall Software

Changes between Version 9 and Version 10 of TracOnSlackwareTwelvePointOne


Ignore:
Timestamp:
Feb 22, 2015, 4:50:07 PM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracOnSlackwareTwelvePointOne

    v9 v10  
    1 == trac 11rc1 + MySQL + mod_python on Slackware 12.1 ==
     1= Trac 11rc1 + MySQL + mod_python on Slackware 12.1
    22
    3 This guide isn't exactly a HOWTO but in fact the steps I took to install trac. Hope it helps.
     3This guide lists the steps to install Trac on [http://www.slackware.com/ Slackware 12.1] with [http://www.mysql.com/ MySQL] and [http://modpython.org/ mod_python].
    44
    5 === Subversion with SWIG ===
    6 One of the requirements is that subversion be compiled with SWIG support, therefore if you are using the supplied package then you will need to recompile. To do so follow the following steps:
     5== Subversion with SWIG
    76
    8  * Remove installed subversion package;
    9  * Compile and install swig from slackbuilds
    10  * Get subversion build scripts and source from source cd
    11  * Edit build script and include --with-swig in configuration options
    12  * Recompile subversion & install new subversion package
    13  * In subversion source directory (probably in /tmp) do:
     7One of the requirements is that Subversion is compiled with [http://www.swig.org/ SWIG] support. Therefore if you are using the supplied package, then you will need to recompile as follows:
     8
     9 * Remove installed Subversion package.
     10 * Compile and install SWIG from [http://slackbuilds.org/ slackbuilds].
     11 * Get Subversion build scripts and source from source cd.
     12 * Edit build script and include `--with-swig` in configuration options.
     13 * Recompile Subversion and install new Subversion package.
     14 * In Subversion source directory (probably in /tmp) do:
    1415
    1516{{{
     
    1819}}}
    1920
    20 === trac installation ===
     21== Trac installation
    2122
    22 Once subversion has been recompiled trac installation can proceed. First install ez_setup:
     23Once subversion has been recompiled Trac installation can proceed. First install ez_setup:
     24
    2325{{{
    2426python ez_setup.py
     
    2628
    2729Next install Genshi:
     30
    2831{{{
    2932easy_install Genshi
    3033}}}
    3134
    32 And finally trac
     35And finally Trac:
     36
    3337{{{
    3438easy_install Trac==0.11rc1
    3539}}}
    3640
    37 === MySQL ===
    38  * Install MySQL package from Slackware (make sure everything is up and running before proceding)
    39  * Compile and install pysetuptools from slackbuilds
    40  * Compile and install mysql-python from slackbuilds
    41  * Set-up the trac database
     41== MySQL
     42
     43 * Install MySQL package from Slackware, make sure everything is up and running before proceeding.
     44 * Compile and install pysetuptools from slackbuilds.
     45 * Compile and install mysql-python from slackbuilds.
     46 * Set-up the Trac database:
    4247{{{
    4348mysql -u root -p
     
    4853}}}
    4954
    50 For above example connection string will be: mysql://tracuser:password@localhost/trac.
     55For the above example the connection string will be: `mysql://tracuser:password@localhost/trac`.
    5156
    52 === Set-up trac ===
    53 First create project
     57== Set-up Trac
     58
     59Create Trac project:
     60
    5461{{{
    5562trac-admin /path/to/myproject initenv
    5663}}}
    5764
    58 === Apache Set-up ===
    59  * Compile and install mod_python from slackbuilds
    60  * Configure apache to test Python installation add to httpd.conf(location only for tests)
     65== Apache setup
     66
     67 * Compile and install mod_python from http://slackbuilds.org/ slackbuilds].
     68 * Configure Apache to test Python installation, add the following to `httpd.conf` (location only for tests):
    6169{{{
    6270LoadModule python_module lib/httpd/modules/mod_python.so
     
    6876}}}
    6977
    70  * Make sure PYTHONPATH is set and that apache can see it. (VERY IMPORTANT)
     78 * '''IMPORTANT''': Make sure PYTHONPATH is set and that apache can see it:
    7179{{{
    7280export PYTHONPATH=$PYTHONPATH:/usr/lib/svn-python
    7381}}}
    7482
    75  * Restart apache
    76  * Point browser to http://localhost/mpinfo (you should see info and if so location can now be removed)
    77  * Next add to httpd.conf Virtualhost config (or any other setup you would like)
    78 Notes: This VirtualHost config if for multiple projects
     83 * Restart Apache.
     84 * Point browser to `http://localhost/mpinfo`: you should see info and if so location can now be removed.
     85 * Next add to `httpd.conf` Virtualhost config or any other setup you would like.
     86
     87'''Note''': add this VirtualHost config for multiple projects:
    7988{{{
    8089<VirtualHost *:999>
     
    102111}}}
    103112
    104  * Restart apache again
    105  * Point to virtualhost and all should be working (unless I forgot to document some step I took)
     113 * Restart Apache.
     114 * Point to virtualhost and all should be working.
    106115
    107116Hope this helps,