Integration of redmine and SVN on centos

Source: Internet
Author: User
Tags ssl certificate redmine

Integration of redmine and SVN on centos 1. install SVN first. integration of SVN and Apache 1. create an SVN repository [php] # cd/var/www/# mkdir svn # cd svn # svnadmin create test1 // after installing SVN, the root directory for creating the SVN repository is/var/www/svn, and a new version library test1 2 is created in it. modify the Apache configuration file [php] # vi/usr/local/apache/conf/httpd. add the following content to the conf file: [php] LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so <Location/svn> DAV svn SVNParentPath/var/www/svn SVNListParentPath on Order deny, allow Allow from all </Location> 3. SVN configuration file modification [php] # cd test1 # vi config/authz Add the following two lines [php] [/] harry = rw [php] # vi config/passwd [php] harry = harryssecret // remove the # above this line from [php] # vi config/svnserve. conf remove [php] anon-access = read auth-access = write password-db = passwd authz-db = authz from the following lines. log on to the redmine background for SVN configuration in redmine, choose a project from manage project to project, and select the version library tab. Select Subversion in SCM, enter the URL, and enter the login name and password (in this example, you can enter the logon name and password as, Username: harry, password harrayssecret ). Check the project on the front-end. The version library menu is displayed. Click it to display the version library information of the project. The above configuration is limited to http URLs. If your SVN server is built with https, You need to perform the following operations. [Php] # vi/usr/local/redmine // enter your redmine folder # svn ls -- config-dir webserverRedmine -- xml https://XX.XX.XXX.XXX/test1/ at this time you will be asked to enter the user name and password, enter the correct user name and password, whether to permanently Save the ssl certificate, and then confirm. The webserverRedmine directory is generated in the folder where redmine is located. The directory content is the ssl Certificate of the SVN. Modify the content of subversion_adapter.rb in the/usr/local/redmine/lib/redmine/scm/adapters/folder. Find [php] def credentials_string str = ''str <" -- username # {shell_quote (@ login)} "unless @ login. blank? Str <"-- password # {shell_quote (@ password)}" unless @ login. blank? | @ Password. blank? Str <"-- no-auth-cache -- non-interactive" str end: [php] def credentials_string str = ''str <" -- username # {shell_quote (@ login)} "unless @ login. blank? Str <"-- password # {shell_quote (@ password)}" unless @ login. blank? | @ Password. blank? Str <"-- trust-server-cert -- no-auth-cache -- non-interactive -- config-dir/usr/local/redmine/webserverRedmine" // (note: do not add a slash to the folder at the end of the path) str end and restart apache to access the version library. // Pay attention to the permissions of the webserverRedmine folder.
 

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.