| | 40 | |
| | 41 | == Install Different Trac Version and Trac Plugins == |
| | 42 | |
| | 43 | '''Note:''' The below instructions were found on [http://blog.mornati.net/2011/09/06/install-trac-0-12-in-shared-host/ this blog]. |
| | 44 | |
| | 45 | Once logged into your server issue the following command to create the necessary directories: |
| | 46 | |
| | 47 | {{{ |
| | 48 | mkdir -p ~/.local/lib/python2.6/site-packages |
| | 49 | }}} |
| | 50 | |
| | 51 | ''Next install Genshi:''' |
| | 52 | |
| | 53 | {{{ |
| | 54 | easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Genshi |
| | 55 | }}} |
| | 56 | |
| | 57 | Example output: |
| | 58 | |
| | 59 | {{{ |
| | 60 | 0 rosstrac@buffy:~$ easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Genshi |
| | 61 | install_dir /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/ |
| | 62 | Searching for Genshi |
| | 63 | Best match: Genshi 0.6 |
| | 64 | Adding Genshi 0.6 to easy-install.pth file |
| | 65 | |
| | 66 | Using /usr/lib/pymodules/python2.6 |
| | 67 | Processing dependencies for Genshi |
| | 68 | Finished processing dependencies for Genshi |
| | 69 | 0 rosstrac@buffy:~$ |
| | 70 | }}} |
| | 71 | |
| | 72 | '''Next install Babel:''' |
| | 73 | {{{ |
| | 74 | easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Babel |
| | 75 | }}} |
| | 76 | |
| | 77 | Example output: |
| | 78 | |
| | 79 | {{{ |
| | 80 | 0 rosstrac@buffy:~$ easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Babel |
| | 81 | install_dir /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/ |
| | 82 | Searching for Babel |
| | 83 | Reading http://pypi.python.org/simple/Babel/ |
| | 84 | Reading http://babel.edgewall.org/ |
| | 85 | Reading http://babel.edgewall.org/wiki/Download |
| | 86 | Best match: Babel 0.9.6 |
| | 87 | Downloading http://pypi.python.org/packages/2.6/B/Babel/Babel-0.9.6-py2.6.egg#md5=e66698fb97c8dc0a7c6b7b86c91d62be |
| | 88 | Processing Babel-0.9.6-py2.6.egg |
| | 89 | creating /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/Babel-0.9.6-py2.6.egg |
| | 90 | Extracting Babel-0.9.6-py2.6.egg to /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages |
| | 91 | Adding Babel 0.9.6 to easy-install.pth file |
| | 92 | Installing pybabel script to /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/ |
| | 93 | |
| | 94 | Installed /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/Babel-0.9.6-py2.6.egg |
| | 95 | Processing dependencies for Babel |
| | 96 | Finished processing dependencies for Babel |
| | 97 | 0 rosstrac@buffy:~$ |
| | 98 | }}} |
| | 99 | |
| | 100 | '''Finally install Trac==VERSION_NUMBER''' |
| | 101 | |
| | 102 | {{{ |
| | 103 | easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Trac==1.0 |
| | 104 | }}} |
| | 105 | |
| | 106 | Example output: |
| | 107 | |
| | 108 | {{{ |
| | 109 | 0 rosstrac@buffy:~$ easy_install-2.6 --install-dir $HOME/.local/lib/python2.6/site-packages/ Trac==1.0 |
| | 110 | install_dir /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/ |
| | 111 | Searching for Trac==1.0 |
| | 112 | Reading http://pypi.python.org/simple/Trac/ |
| | 113 | Reading http://trac.edgewall.org/ |
| | 114 | Reading http://trac.edgewall.org/wiki/TracDownload |
| | 115 | Reading http://trac.edgewall.com/ |
| | 116 | Reading http://projects.edgewall.com/trac |
| | 117 | Reading http://projects.edgewall.com/trac/wiki/TracDownload |
| | 118 | Best match: Trac 1.0 |
| | 119 | Downloading http://pypi.python.org/packages/source/T/Trac/Trac-1.0.zip#md5=3dd2e883179879c8fa5b98c984f15058 |
| | 120 | Processing Trac-1.0.zip |
| | 121 | Running Trac-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6Ver0k/Trac-1.0/egg-dist-tmp-uX_TB1 |
| | 122 | catalog 'trac/locale/el/LC_MESSAGES/messages.po' is marked as fuzzy, skipping |
| | 123 | catalog 'trac/locale/hy/LC_MESSAGES/messages.po' is marked as fuzzy, skipping |
| | 124 | catalog 'trac/locale/pl/LC_MESSAGES/messages.po' is marked as fuzzy, skipping |
| | 125 | catalog 'trac/locale/tr/LC_MESSAGES/messages.po' is marked as fuzzy, skipping |
| | 126 | catalog 'trac/locale/ko/LC_MESSAGES/messages.po' is marked as fuzzy, skipping |
| | 127 | catalog 'trac/locale/fa/LC_MESSAGES/messages.po' is marked as fuzzy, skipping |
| | 128 | catalog 'trac/locale/vi/LC_MESSAGES/messages.po' is marked as fuzzy, skipping |
| | 129 | Adding Trac 1.0 to easy-install.pth file |
| | 130 | Installing trac-admin script to /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/ |
| | 131 | Installing tracd script to /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/ |
| | 132 | |
| | 133 | Installed /home/members/ross/sites/trac.ross.mayfirst.org/users/rosstrac/.local/lib/python2.6/site-packages/Trac-1.0-py2.6.egg |
| | 134 | Processing dependencies for Trac==1.0 |
| | 135 | Finished processing dependencies for Trac==1.0 |
| | 136 | 0 rosstrac@buffy:~$ |
| | 137 | }}} |
| | 138 | |
| | 139 | Next change your ~/.bashrc file to use the newly downloaded executable. Add the following line to your .bashrc file: |
| | 140 | |
| | 141 | {{{ |
| | 142 | export PATH="$HOME/.local/lib/python2.6/site-packages:$PATH" |
| | 143 | }}} |
| | 144 | |
| | 145 | ''Then run:''' |
| | 146 | |
| | 147 | {{{ |
| | 148 | source ~/.bashrc |
| | 149 | }}} |
| | 150 | |
| | 151 | '''Now run''' |
| | 152 | |
| | 153 | {{{ |
| | 154 | which trac-admin |
| | 155 | }}} |
| | 156 | |
| | 157 | You should see the correct local path to trac-admin. Now you should be able to follow the steps from earlier: |
| | 158 | |
| | 159 | * Choose a directory to install your trac files (your domain.org/include/ directory is a good option). Replace words in capitals with values that make sense for your site: |
| | 160 | {{{ |
| | 161 | mkdir /home/members/GROUPNAME/sites/DOMAIN/include/trac |
| | 162 | mkdir /home/members/GROUPNAME/sites/DOMAIN/include/trac/PROJECTNAME |
| | 163 | }}} |
| | 164 | * Initialize your project (the first question asks for the name of your project, for all other questions, you can safely choose the default values) |
| | 165 | {{{ |
| | 166 | trac-admin /home/members/GROUPNAME/sites/DOMAIN/include/trac/PROJECTNAME initenv |
| | 167 | }}} |
| | 168 | |
| | 169 | |
| | 170 | * Create the trac cgi scripts using the trac deploy |
| | 171 | {{{ |
| | 172 | trac-admin /home/members/GROUPNAME/sites/DOMAIN/include/trac/PROJECTNAME deploy /home/members/GROUPNAME/sites/DOMAIN/cgi-bin/trac |
| | 173 | }}} |
| | 174 | * Change the mode of the cgi files so that they are executable: |
| | 175 | {{{ |
| | 176 | chmod 755 /home/members/GROUPNAME/sites/DOMAIN/cgi-bin/trac/cgi-bin/trac.* |
| | 177 | }}} |
| | 178 | * Add an alias to your apache configuration: |
| | 179 | {{{ |
| | 180 | ScriptAlias /trac /home/members/GROUPNAME/sites/DOMAIN/cgi-bin/trac/cgi-bin/trac.cgi |
| | 181 | }}} |
| | 182 | |