Deployment of Trac under CentOS 6.x

Source: Internet
Author: User

Trac is a wiki. For details, refer to Baidu. The company has been using trac for public management.

In CentOS 5, you can directly use yum to install trac conveniently and easily. However, the new environment is CentOS 6. If you need to install trac, you will use python-related sources. If you have been using python, you should install and deploy trac. I have never learned python, but I still have to work hard. If you don't need to talk about it, enable the simple mode and deploy and install trac in CentOS x86_64.

Install the epel source;

Rpm-ivh http://download.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Import key:
Rpm -- import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Install basic components

Yum-y install mysql-server mysql-devel httpd mod_dav_svn mod_python MySQL-python-devel subversion trac
# The trac-admin component is 0.12.5 in a lower version.

Database Configuration

/Etc/init. d/mysqld start
# Trac can only use the UTF-8 character set; otherwise, an error is returned.
Create database trac_xe default character set utf8 COLLATE utf8_general_ci;
Grant all on trac_xe. * TO tracuser @ 'localhost' identified by 'tracuser ';
Grant all on trac_xe. * TO tracuser @ '192. 0.0.1 'identified by 'tracuser ';
Flush privileges;

Initialize database and trac directory

Mkdir-p/var/www/trac
Trac-admin/var/www/trac/xe initenv
Project Name [My Project]> XoopsEngine
Database connection string [sqlite: db/trac. db]> mysql: // tracuser: tracuser@127.0.0.1/trac_xe

Test trac

Tracd -- port 8000/var/www/trac/xe
# If http: // IP: 8000/xe can be accessed normally, the installation of trac is complete.

Configure apache

<VirtualHost *: 80>
ServerName dev.local.com
ErrorLog logs/dev. local-error_log
CustomLog logs/dev. local-access_log common
<IfModule mod_python.c>
<Location "/trac">
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac. web. modpython_frontend
PythonOption TracEnv/var/www/trac/xe
PythonOption TracUriRoot/trac
SetEnv PYTHON_EGG_CACHE/tmp
</Location>
<Location "/trac/login">
AuthType Basic
AuthName "dev Trac"
AuthUserFile/var/auth/passwd_op // The trac logon configuration file, which must be generated using apache htpasswd.
Require valid-user
</Location>
</IfModule>
</VirtualHost>

CentOS 5.5 installation and configuration Trac1.0

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.