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 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


[[Email protected] ~] # Tar zxvf apr-util-1.4.1.tar.gz
[[Email protected] ~] # Cd apr-util-1.4.1
[[Email protected] #./configure -- prefix =/usr/local/APR-util -- With-Apr =/usr/local/APR
[[Email protected] ~] # Make & make install

2. install Apache
Download: http://mirrors.cnnic.cn/apache/httpd/
[[Email protected] ~] # Tar zxvf httpd-2.4.7.tar.gz
[[Email protected] ~] # Cd httpd-2.4.7
[[Email protected] 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/
[[Email protected] ~] # Cp/usr/local/Apache/bin/apachectl/etc/init. d/httpd
[[Email protected] ~] # 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 [[email protected] ~] # Tar zxvf sqlite-autoconf-3080200.tar.gz
[[Email protected] ~] # Cd sqlite-autoconf-3080200
[[Email protected] #./configure
[[Email protected] # Make & make install

# Install SVN
Download: http://subversion.apache.org/download
[[Email protected] ~] # Tar zxvf subversion-1.8.5.tar.gz
[[Email protected] ~] # Cd subversion-1.8.5
[[Email protected] #. /configure -- prefix =/usr/local/Subversion -- With-apxs =/usr/local/Apache/bin/apxs -- With-Apr =/usr/local/APR --- apr-util =/usr/local/APR-util/
[[Email protected] # 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: [[email protected] ~] # Vi/usr/local/Apache/bin/apxs
#! /Replace/with/path/to/perl/interpreter-W # change the first line #! /Usr/bin/perl-W
# Add Environment Variables

[[Email protected] ~] # Echo "Path = $ path/:/usr/local/subversion/bin">/etc/profile
[[Email protected] ~] # Source/etc/profile
[[Email protected] ~] # Svnserve-version # The version information is displayed as normal

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.