Install Trac in Ubuntu12.04

Source: Internet
Author: User
To install Trac in Ubuntu12.04, we need to install Trac0.13 on the development server (the operating system is Ubuntu12.04, and the 64-bit server version. Prerequisites: the ApacheWeb server is installed on www.2cto.com. if you want to integrate Trac with Subversion or GIT, install it first... to install Trac in Ubuntu 12.04, we need to install Trac 12.04 on the development server (Ubuntu 0.13, 64-bit server version. Prerequisites: Apache Web server is installed on the www.2cto.com system. to integrate Trac with Subversion or GIT, you must first install the two. The following is the installation step 1. the python module sudo apt-get install trac libapache2-mod-python system for installing trac and apache will install trac and related software. 2. to facilitate management and authorization, create a www-data subdirectory under the/home directory, which is owned by the apache user www-data. Create a trac subdirectory under the www-data directory as the root directory of all Trac projects. Sudo mkdir-p/home/www-data/trac chown-R www-data: www-data/home/www-data 3. create the first Trac Project cd/home/www-data/trac-admin boss initenv. in this way, a trac Project is generated under the/home/www-data/trac/boss directory. Enter the Project Name at the Project Name [My Project]> prompt, such as "BOSS Platform" and press Enter. the Database connection string [sqlite: db/trac. db]> is displayed. accept the default value and press enter. 4. install Apache to create the/etc/apache2/conf. d/trac. conf file, which contains the following content: SetHandler mod_python PythonHandler trac. web. modpython_frontend PythonOption TracEnvParentDir/home/www-data/trac PythonOption TracUriRoot "/trac"   AuthType Basic AuthName "Trac" AuthUserFile/etc/apache2/passwd Require valid-user Create a Trac user (actually an apache user. for the sake of unification, we have trac, apache, and subversion use the same user) yyang, enter sudo htpasswd-c/etc/apache2/passwd yyang as follows and set the user's yyang password as prompted. Add other users in sequence (remove the-c parameter to avoid re-creating the passwd file ). 5. open your browser and access Trac. in the address bar, enter http: // localhost/trac to list the hyperlinks of all Trac projects. click a project to go to the home page of the corresponding project. 6. in general, Trac can be upgraded with Ubuntu (via sudo apt-get update and sudo apt-get upgrade commands), but if necessary, run the following command to upgrade the trac: after sudo easy_install-U Trac is upgraded to the Trac version, you can upgrade the existing trac environment separately and enter the following command: sudo-u www-data trac-admin/home/www-data/trac/boss upgrade will upgrade the boss project.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.