Install Trac
Posted by on 02 July 2012 10:34 AM
|
|
This guide will explain how to install Trac on your account, and assumes you have knowledge of MySQL and Trac. Installing Trac is not for the faint-hearted. It is not easy to install and to administer. If you are up for the challenge, by all means carry on! If this seems a bit too complex for you, give some other bug/project management software a go.
We will be running Trac on FastCgi and using the experimental MySQL database support for Trac. This guide does not install SVN bindings for Trac. Get Everything ReadyLet's go ahead and get our files together and organize them. To get started:
Note: if the server you are in is a 64-bit OS you'll have to find a 64-bit binary version. To find out the OS you are running, log into your website's cPanel and look for General Server Information. You should see a field labeled Machine Type, which will list whether it is a 64-bit or 32-bit OS. 32-bit
64-bit
Set Up the DatabaseTrac will use one database per project. So if you have more than one project, please create the necessary amount of databases needed.
Initialize Trac Environment
Follow the output below and correct where necessary in your case. Creating a new Trac environment at /home/{user}/trac/myproject Trac will first ask a few questions about your environment Please enter the name of your project. Project Name [My Project]> My Project Please specify the connection string for the database to use. Database connection string [sqlite:db/trac.db]> mysql://user:[email protected]/database_name Please specify the type of version control system, If you don't want to use Trac with version control integration, Repository type [svn]> Please specify the absolute path to the version control Path to repository [/path/to/repos]> Please enter location of Trac page templates. Templates directory [/home/{user}/trac/share/trac/templates]> Creating and Initializing Project --------------------------------------------------------------------- You may now configure the environment by editing the file: /home/{user}/trac/myproject/conf/trac.ini ... Congratulations! Run TracMake sure you are in your 'public_html' directory and execute the following: mkdir trac
We will create a directory where trac will run from. Then make sure we are in that folder. #!/bin/bash
Please change {user} where necessary. Now create an '.htaccess' file in the folder ($HOME/public_html/trac) with the following contents: DirectoryIndex index.fcgi ResourcesClearSilver 32-bit Binary TroubleshootingTo check if Trac is installed properly. Navigate to '$HOME/public_html/trac' and run the following command: exec ./index.fcgi This will execute the file in SSH. If the output spits out HTML tags, it means you have successfully installed Trac. If the last few lines contains 'TracError: ClearSilver not installed (/lib/tls/libc.so.6: version `GLIBC_2.4' not found' or something with 'ClearSilver', it means that you have the wrong version of ClearSilver. 500 ErrorCheck that the following files are chmod 755:
Check that the "index.fcgi" has proper Unix newline.
| |
|