Deploy Apache + SVN in CentOS 6.5

Source: Internet
Author: User
Tags version control system

Note: O & M personnel know that they often work with developers to build environments they need to improve development efficiency. What they face every day is code, therefore, code availability and management are crucial to development. Every time a development company receives a project, it is a team to develop the Code. As a result, many people modify some code at the same time and face some problems, such: deleting by mistake may cause a conflict with the modification to the same file. If you do not grant all permissions to some users, this will reduce your work efficiency, to solve these problems, we need a professional version management system to centrally manage these codes. There are many such version management systems. We are using SVN (subversion) and the successor of cvs this time, it is now the most widely used version management software for open-source software. If you don't need to talk about it, start to build your own version control system.

SVN servers can run in two ways: independent servers and apache (Web/DAV ).

1. Install the dependency package


[Root @ localhost ~] # Yum install gcc-++ make pcre-develzlib-devel-y

[Root @ localhost ~] # Tar zxvf apr-1.4.6.tar.gz
[Root @ localhost ~] # Cd apr-1.4.6
[Root @ localhost apr-1.4.6] #./configure -- prefix =/usr/local/apr
[Root @ localhost ~] # Make & make install


[Root @ localhost ~] # Tar zxvf apr-util-1.4.1.tar.gz
[Root @ localhost ~] # Cd apr-util-1.4.1
[Root@localhostapr-util-1.4.1] #./configure -- prefix =/usr/local/apr-util -- with-apr =/usr/local/apr
[Root @ localhost ~] # Make & make install

2. install Apache
Download: http://mirrors.cnnic.cn/apache/httpd/
[Root @ localhost ~] # Tar zxvf httpd-2.4.7.tar.gz
[Root @ localhost ~] # Cd httpd-2.4.7
[Root @ localhost httpd-2.4.7] #. /configure -- prefix =/usr/local/apache -- enable-dav -- enable-so -- enable-rewrite -- enable-maintainer-mode -- with-apr =/usr/local/apr -- with-apr-util =/usr/local/apr-util/
[Root @ localhost ~] # Cp/usr/local/apache/bin/apachectl/etc/init. d/httpd
[Root @ localhost ~] # Sed-I's/# ServerName. */ServerName localhost/'/usr/local/apache/conf/httpd. conf

3. Install SVN
SVN requires SQLite database support. First install SQLite
Download: http://www.sqlite.org/download.html
1234 [root @ localhost ~] # Tar zxvf sqlite-autoconf-3080200.tar.gz
[Root @ localhost ~] # Cd sqlite-autoconf-3080200
[Root @ localhostsqlite-autoconf-3080200] #./configure
[Root @ localhostsqlite-autoconf-3080200] # make & make install

# Install SVN
Download: http://subversion.apache.org/download
[Root @ localhost ~] # Tar zxvf subversion-1.8.5.tar.gz
[Root @ localhost ~] # Cd subversion-1.8.5
[Root@localhostsubversion-1.8.5] #. /configure -- prefix =/usr/local/subversion -- with-apxs =/usr/local/apache/bin/apxs -- with-apr =/usr/local/apr --- apr-util =/usr/local/apr-util/
[Root@localhostsubversion-1.8.5] # make & make install

./Confiure error: this is because the apsx file does not specify the perl execution program location
Apache/bin/apxs:/usr/local/perl: bad interpreter: No such file or directory
Configure: error: no-APXSrefers to an old version of Apache
Solution: [root @ localhost ~] # Vi/usr/local/apache/bin/apxs
#! /Replace/with/path/to/perl/interpreter-w # change the first line #! /Usr/bin/perl-w
# Add Environment Variables

[Root @ localhost ~] # Echo "PATH = $ PATH/:/usr/local/subversion/bin">/etc/profile
[Root @ localhost ~] # Source/etc/profile
[Root @ localhost ~] # Svnserve-version # The version information is displayed as normal

Recommended reading:

Subversion configuration instances in Linux

CentOS 6.2 SVN setup (YUM installation)

Build an SVN server using Apache + SVN

Set up and use the SVN server in Windows + reset the password on the client

Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data

Build svn service and migration method on Ubuntu Server

Build SVN server with online storage

Web Version synchronization for Apache + SVN deployment in CentOS 6.3

  • 1
  • 2
  • Next Page

Related Article

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.