Install and integrate TracSVNapacheSSL configuration in Linux

Source: Internet
Author: User
Trac + SVN + apache (SSL) installation 1. introduction: & nbsp; a Trac should be deployed and integrated with existing SVN due to project requirements. as for what is Trac and SVN, we will not discuss it much. 2. installation steps: & nbsp; (1) install apache (this step is omitted) & nbsp; (2) install SVN & nbsp;

Trac + SVN + apache (SSL) installation
1. introduction:
Because of the project requirements, we need to deploy a Trac and integrate it with the existing SVN. As for what is Trac and SVN, we will not discuss it much.
2. installation steps:
(1) install apache (this step is omitted)
(2) install SVN
Shell> wget http://subversion.tigris.org/downloads/subversion-1.5.6.tar.gz
Shell> tar zxvf subversion-1.5.6.tar.gz
Shell> cd subversion
Shell>./configure? With-apxs =/usr/local/apache/bin/apxs? Prefix =/usr/local/svn? With-apr =/usr/local/apache? With-apr-util =/usr/local/apache? With-

Ssl? Enable-maintainer-mode? Without-berkeley-db PYTHON =/usr/bin/python? With-swig =/usr/bin/swig? Enable-shared? Enable-static? Enable-swig-

Binding = python
Shell> make & make install
(3) configure apache:
Create a certificate:
Shell> maker/usr/local/apache/conf/key
Shell> cd/usr/local/apache/conf/key
Shell> openssl genrsa-out xuan-lu.key 1024
Shell> chmod 600/usr/local/apache/key/xuan-lu.key
Shell> openssl req-new-key xuan-lu.key-out xuan-lu.csr
You are about to be asked to enter information that will be ininitialized
Into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-?
Country Name (2 letter code) [GB]: CN
State or Province Name (full name) [Berkshire]: China
Locality Name (eg, city) [Newbury]: Shang Hai
Organization Name (eg, company) [My Company Ltd]: 99 Roses
Organizational Unit Name (eg, section) []: 99 Roses
Common Name (eg, your name or your server's hostname) []: xuan-lu
Email Address []: martin@xuan-lu.net

Please enter the following 'Extra 'attributes
To be sent with your certificate request
A challenge password []: xuan-lu
An optional company name []: xuan-lu
Shell> openssl x509-req-days 365-in xuan-lu.csr-signkey xuan-lu.key-out xuan-lu.crt
Shell> ls
Xuan-lu.crt xuan-lu.csr xuan-lu.key
Configure apache:
Shell>/usr/local/apache/bin/htpasswd-c/home/svn/user/svn_user.conf martin
New password:
Re-type new password:
Adding password for user martin

Shell> vi/usr/local/apache/conf/httpd. conf
Uncomment on the ssl below:
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf

Shell> vi/usr/local/apache/conf/extra/httpd-ssl.conf
Add as follows:

ServerName svn.xuan-lu.net
SSLEngine on
SSLCertificateFile "/usr/local/apache/key/xuan-lu.crt"
SSLCertificateKeyFile "/usr/local/apache/key/xuan-lu.key"

DAV svn
SVNPath/home/svn/xuan-lu/
AuthType Basic
AuthName "xuan-lu !!! SVN"
AuthUserFile/home/svn/user/svn_user.conf
AuthzSVNAccessFile/home/svn/xuan-lu/conf/authz
Require valid-user


Shell> service httpd restart
Note: explain how to use the SVN permission configuration file.
[Groups]
Admin = martin
User_r = user_1

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.