Install Trac Windows

Posted by admin

.Trac is written in the Python programming language and needs a database,. For HTML rendering, Trac uses the templating system.Since version 0.12, Trac can also be localized, and there's probably a translation available for your language. If you want to be able to use the Trac interface in other languages, then make sure you first have installed the optional package.

Lacking Babel, you will only get the default English version, as usual. If you install Babel later on, you will need to re-install Trac.If you're interested in contributing new translations for other languages or enhance the existing translations, then please have a look at.What follows are generic instructions for installing and setting up Trac and its requirements. While you may find instructions for installing Trac on specific systems at on the main Trac site, please be sure to first read through these general instructions to get a good understanding of the tasks involved. Installation Steps. Dependencies. Mandatory Dependencies. Optional Dependencies.

Installing Trac. Using easyinstall. From source. Advanced Options. Creating a Project Environment. Deploying Trac.

Running the Standalone Server. Running Trac on a Web Server. Configuring Authentication. Granting admin rights to the admin user.

Finishing the install. Automatic reference to the SVN changesets in Trac tickets. Using TracDependencies Mandatory DependenciesTo install Trac, the following software packages must be installed:., version = 2.4 and = 0.6., version = 0.6 (but. $ apt-get install libsqlite3-devSQLite 2.x is no longer supported, and neither is PySqlite 1.1.x.A known bug PySqlite versions 2.5.2-4 prohibits upgrade of trac databases from 0.11.x to 0.12. Please use versions 2.5.5 and newer or 2.5.1 and older.

See for more detail.See additional information in. For the PostgreSQL databaseYou need to install the database and its Python bindings:., version 8.0 or later.See for details. For the MySQL databaseTrac can now work quite well with MySQL, provided you follow the guidelines., version 5.0 or later., version 1.2.2 or laterIt is very important to read carefully the page before creating the database. Optional Dependencies Version Control System Subversion1.5.x or 1.6.x and the corresponding Python bindings.There are available for various platforms. See also the TracSubversion?

Install Trac WindowsInstall

Page for details about Windows packages.Older versions starting from 1.4.0, etc. Should still work. For troubleshooting information, check the page. Versions prior to 1.4.0 won't probably work since trac uses svn core functionality (e.g. Svnpathcanonicalize) that is not implemented in the python swig wrapper in svn = 0.3.9 for. for.

And/or may still be used but are deprecated and you really should be using Pygments. to get a complete list of time zones, otherwise Trac will fall back on a shorter list from an internal time zone implementation.Attention: The various available versions of these dependencies are not necessarily interchangable, so please pay attention to the version numbers above. If you are having trouble getting Trac to work please double-check all the dependencies before asking for help on the or.Please refer to the documentation of these packages to find out how they are best installed. In addition, most of the also describe the installation of the dependencies.

Keep in mind however that the information there probably concern older versions of Trac than the one you're installing (there are even some pages that are still talking about Trac 0.8!). Installing Trac Using easyinstallOne way to install Trac is using.

With setuptools you can install Trac from the subversion repository;A few examples:. first install of the latest stable version Trac 0.12.3, with i18n support.

Easyinstall - U Trac devFor upgrades, reading the page is mandatory, of course. From sourceIf you want more control, you can download the source in archive form, or do a checkout from one of the official Trac:TracRepositories source code repositories.Be sure to have the prerequisites already installed.

You can also obtain the Genshi and Babel source packages from and follow for them a similar installation procedure, or you can just easyinstall those, see.Once you've unpacked the Trac archive or performed the checkout, move in the top-level folder and do. $ python./setup.py installYou'll need root permissions or equivalent for this step.This will byte-compile the python source code and install it as an.egg file or folder in the site-packages directory of your Python installation. The.egg will also contain all other resources needed by standard Trac, such as htdocs and templates.The script will also install the command-line tool, used to create and maintain, as well as the standalone server.If you install from source and want to make Trac available in other languages, make sure Babel is installed. Only then, perform the install (or simply redo the install once again afterwards if you realize Babel was not yet installed). Easyinstall -prefix=/usr/local -install-dir=/Library/Python/2.5/site-packagesNote: If installing on Mac OS X 10.6 running easyinstall will install into /usr/local and /Library/Python/2.6/site-packages by defaultThe above will place your tracd and trac-admin commands into /usr/local/bin and will install the Trac libraries and dependencies into /Library/Python/2.5/site-packages, which is Apple's preferred location for third-party Python application installations. Using pip'pip' is an easyinstall replacement that is very useful to quickly install python packages. $ trac-admin /path/to/myproject initenvwill prompt you for the information it needs to create the environment, such as the name of the project and the.

If you're not sure what to specify for one of these options, just press to use the default value.Using the default database connection string in particular will always work as long as you have SQLite installed. For the other database backends? You should plan ahead and already have a database ready to use at this point.Since 0.12, Trac doesn't ask for a anymore when creating an environment. Repositories can be afterward, or the version control support can be disabled completely if you don't need it.Also note that the values you specify here can be changed later by directly editing the configuration file.Finally, make sure the user account under which the web front-end runs will have write permissions to the environment directory and all the files inside. This will be the case if you run trac-admin. Initenv as this user.

If not, you should set the correct user afterwards. For example on Linux, with the web server running as user apache and group apache, enter. $ tracd -s -port 8000 /path/to/myprojectRunning Trac on a Web ServerTrac provides various options for connecting to a 'real' web server:.

(no longer recommended, as modpython is not actively maintained anymore). (should not be used, as the performance is far from optimal)Trac also supports which may be your choice if you want to connect to IIS.

Other deployment scenarios are possible:, etc. Generating the Trac cgi-bin directoryIn order for Trac to function properly with FastCGI you need to have a trac.fcgi file and for modwsgi a trac.wsgi file. These are Python scripts which load the appropriate Python code.

They can be generated using the deploy option of.There is, however, a bit of a chicken-and-egg problem. The command requires an existing environment to function, but complains if the deploy directory already exists. This is a problem, because environments are often stored in a subdirectory of the deploy. The solution is to do something like this. Mkdir - p / usr / share / trac / projects / my - project trac - admin / usr / share / trac / projects / my - project initenv trac - admin / usr / share / trac / projects / my - project deploy / tmp / deploy mv / tmp / deploy /.

Install Trac On Centos 7

/usr/share/trac Mapping Static ResourcesOut of the box, Trac will pass static resources such as style sheets or images through itself. For anything but a tracd only based deployment, this is far from optimal as the web server could be set up to directly serve those static resources (for CGI setup, this is highly undesirable and will cause abysmal performance).Web servers such as allow you to create “Aliases” to resources, giving them a virtual URL that doesn't necessarily reflect the layout of the servers file system. We also can map requests for static resources directly to the directory on the file system, avoiding processing these requests by Trac itself.There are two primary URL paths for static resources - /chrome/common and /chrome/site. Plugins can add their own resources, usually accessible by /chrome/ path, so its important to override only known paths and not try to make universal /chrome alias for everything.Note that in order to get those static resources on the filesystem, you need first to extract the relevant resources from Trac using the deploy command. SetHandler NoneNote that we mapped /trac part of the URL to the trac.cgi script, and the path /trac/chrome/common is the path you have to append to that location to intercept requests to the static resources.Similarly, if you have static resources in a project's htdocs directory (which is referenced by /trac/chrome/site URL in themes), you can configure Apache to serve those resources (again, put this before the ScriptAlias or WSGIScriptAlias for the.cgi scripts, and adjust names and locations to match your installation). $ ln -s /path/to/trac/htdocs/common /var/www/static.example.org/trac-commonSetting up the Plugin CacheSome Python plugins need to be extracted to a cache directory. By default the cache resides in the home directory of the current user.

When running Trac on a Web Server as a dedicated user (which is highly recommended) who has no home directory, this might prevent the plugins from starting. To override the cache location you can set the PYTHONEGGCACHE environment variable. Refer to your server documentation for detailed instructions on how to set environment variables. Configuring AuthenticationTrac uses HTTP authentication.

You'll need to configure your webserver to request authentication when the./login URL is hit (the virtual path of the 'login' button). Trac will automatically pick the REMOTEUSER variable up after you provide your credentials. Therefore, all user management goes through your web server configuration.

$ trac-admin /path/to/myproject permission add admin TRACADMINThis user will have an 'Admin' entry menu that will allow you to admin your trac project. Finishing the install Automatic reference to the SVN changesets in Trac ticketsYou can configure SVN to automatically add a reference to the changeset into the ticket comments, whenever changes are committed to the repository. The description of the commit needs to contain one of the following formulas:. Refs #123 - to reference this changeset in #123 ticket.

Fixes #123 - to reference this changeset and close #123 ticket with the default status fixedThis functionality requires a post-commit hook to be installed as described in, and enabling the optional commit updater components by adding the following line to the components section of your, or enabling the components in the 'Plugins' admin panel. = enabledFor more information, see the documentation of the CommitTicketUpdater component in the 'Plugins' admin panel. Using TracOnce you have your Trac site up and running, you should be able to create tickets, view the timeline, browse your version control repository if configured, etc.Keep in mind that anonymous (not logged in) users can by default access only a few of the features, in particular they will have a read-only access to the resources. You will need to configure authentication and grant additional to authenticated users to see the full set of features.

Start Trac Service

Trac

Enjoy!

As the title suggests, I'm trying to install Trac as a Windows Service on Windows Server 2008. I've looked into the instructions at.

Out of the different options given there, I would prefer an Option 1 like approach which uses some Windows utilities instead of installing additional software but the instructions seem a bit outdated for Windows Server 2008 as instsrv.exe and srvany.exe are not available for Server 2008. There is a suggestion to use winserv.exe but I can't find it anywhere and the suggested Google search does not provide any credible results.Is there a way to use the sc Windows utility to install Trac as a service? Has anyone tried this?Update: I tried using sc but that does not work.

It helps you to decreases the shakiness of movies, helps you to minimize the movie artifacts. Cyberlink

Sc only interacts with programs developed as Windows Service Applications so they have hooks to interact with sc.