Changes between Version 9 and Version 10 of TracOnSlackwareTwelvePointOne
- Timestamp:
- Feb 22, 2015, 4:50:07 PM (9 years ago)
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 2 2 3 This guide isn't exactly a HOWTO but in fact the steps I took to install trac. Hope it helps.3 This 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]. 4 4 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 7 6 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: 7 One 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: 14 15 15 16 {{{ … … 18 19 }}} 19 20 20 == = trac installation ===21 == Trac installation 21 22 22 Once subversion has been recompiled trac installation can proceed. First install ez_setup: 23 Once subversion has been recompiled Trac installation can proceed. First install ez_setup: 24 23 25 {{{ 24 26 python ez_setup.py … … 26 28 27 29 Next install Genshi: 30 28 31 {{{ 29 32 easy_install Genshi 30 33 }}} 31 34 32 And finally trac 35 And finally Trac: 36 33 37 {{{ 34 38 easy_install Trac==0.11rc1 35 39 }}} 36 40 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: 42 47 {{{ 43 48 mysql -u root -p … … 48 53 }}} 49 54 50 For above example connection string will be: mysql://tracuser:password@localhost/trac.55 For the above example the connection string will be: `mysql://tracuser:password@localhost/trac`. 51 56 52 === Set-up trac === 53 First create project 57 == Set-up Trac 58 59 Create Trac project: 60 54 61 {{{ 55 62 trac-admin /path/to/myproject initenv 56 63 }}} 57 64 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): 61 69 {{{ 62 70 LoadModule python_module lib/httpd/modules/mod_python.so … … 68 76 }}} 69 77 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: 71 79 {{{ 72 80 export PYTHONPATH=$PYTHONPATH:/usr/lib/svn-python 73 81 }}} 74 82 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: 79 88 {{{ 80 89 <VirtualHost *:999> … … 102 111 }}} 103 112 104 * Restart apache again105 * 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. 106 115 107 116 Hope this helps,