Edgewall Software

Changes between Version 1 and Version 2 of TracOnSlackwareTwelvePointOne


Ignore:
Timestamp:
Jun 7, 2008, 5:23:12 AM (16 years ago)
Author:
icebrian
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracOnSlackwareTwelvePointOne

    v1 v2  
     1
     2{{{
     3
     4}}}
    15Wont go into much detail's but here is my documented steps to install Trac 11RC1 on Slackware 12.1.
    26
    3 ... (confirming everything before posting)
     7This "guide" is for trac 11rc1 with MySQL, Subversion (with swith) and mod_python apache module
     8<br><br>
     9If you are currently using the supplied subversion package or a compiled package with no SWIG support then follow the following steps:
     10 * remove installed subversion
     11 * compile and install swig from slackbuilds
     12 * get subversion build scripts and source from source cd
     13 * edit build script and include --with-swig
     14 * recompile subversion & install new subversion package
     15 * in subversion source directory (probably in /tmp) do:
     16 ** make swig-py; make install-swig-py
     17
     18{{{
     19export PYTHONPATH=$PYTHONPATH:/usr/lib/svn-python
     20}}}
     21
     22
     23Once subversion has been recompiled trac installion can proceed:
     24 * install ez_setup
     25
     26{{{
     27python ez_setup.py
     28}}}
     29
     30 * install Genshi
     31
     32{{{
     33easy_install Genshi
     34}}}
     35
     36 * install Trac
     37
     38{{{
     39easy_install Trac==0.11rc1
     40}}}
     41
     42 * compile and install pysetuptools from slackbuilds
     43 * compile and install mysql-python from slackbuilds
     44 * set-up database
     45
     46{{{
     47mysql -u root -p
     48create database trac DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
     49USE trac;
     50CREATE USER tracuser IDENTIFIED BY 'password';
     51GRANT ALL ON trac.* TO tracuser;
     52}}}
     53
     54For above example connection string will be: mysql://tracuser:password@localhost/trac
     55
     56 * compile and install mod_python from slackbuilds
     57 * configure apache to test Python installation add (location only for tests)
     58
     59{{{
     60LoadModule python_module lib/httpd/modules/mod_python.so to httpd.conf
     61<Location /mpinfo>
     62   SetHandler mod_python
     63   PythonInterpreter main_interpreter
     64   PythonHandler mod_python.testhandler
     65</Location>
     66}}}
     67
     68 * stop and start apache (do not restart)
     69 * point browser to /mpinfo (you should see info if so location can now be removed)
     70 * create project
     71
     72{{{
     73trac-admin /path/to/myproject initenv
     74}}}
     75
     76 * add to httpd.conf virtualhost config (or any other setup you would like)
     77
     78{{{
     79<VirtualHost *:999>
     80   DocumentRoot /path/to/myproject
     81   <Directory "/path/to/myproject">
     82     Allow from all
     83   </Directory>
     84   <Location />
     85     SetHandler mod_python
     86     PythonHandler trac.web.modpython_frontend
     87     PythonOption TracEnvParentDir /dir/to/trac
     88     PythonOption TracUriRoot /
     89   </Location>
     90# used for authentication (refer to manual)
     91#   <LocationMatch "/[^/]+/login">
     92#     AuthType Basic
     93#     AuthName "Trac"
     94#     AuthUserFile /path/to/myproject/.htpasswd
     95#     Require valid-user
     96#   </LocationMatch>
     97</VirtualHost>
     98}}}
     99
     100 * stop and start apache
     101 * point to virtualhost and all should be working