Install apache + subversion for linux

Source: Internet
Author: User

Apache + subversion for linux installing SVN is an essential tool for managing the current version of the project. It has unparalleled advantages over vss and its predecessor, cvs. The following are the steps for installing the apache + subversion server: i. Prepare the installation package: ①apr-1.3.6.tar.gz: http://apr.apache.org/②apr-util-1.3.8.tar.gz ← subversion-1.6.3.tar.gz: http://subversion.tigris.org/④subversion-deps-1.6.3.tar.gz %httpd-2.2.9.tar.gz: http://httpd.apache.org/Note: apach version and subversion compatibility issues, 2. Start installation on the official website: Upload the above installation package to the/usr/local directory, and enter cd/usr/local to this directory 1. Install apr tar zxvf apr-1.3.6.tar.gz # unzip package cd apr-1.3.6. /configure make install 2. install apr-util tar zxvf apr-util-1.3.8.tar.gz cd apr-util-1.3.8. /configure -- with-apr =/usr/local/apr make install 3. install apache tar zxvf httpd-2.2.9.tar.gz cd httpd-2.2.9. /configure -- prefix =/usr/local/apache2.2.9 -- enable-dav -- enable-so -- enable-maintainer-mode -- with-apr =/usr/local/apr/bin/apr-1-config -- with-ap R-util =/usr/local/apr/bin/apu-1-config # -- prefix indicates to install apache in the specified directory make install 4, install subversion tar zxvf subversion-1.6.3.tar.gz tar zxvf subversion-deps-1.6.3.tar.gz cd subversion- 1.6.3. /configure -- prefix =/opt/svn -- with-apxs =/usr/local/apache2.2.9/bin/apxs -- with-apr =/usr/local/apr -- with-apr- util =/usr/local/apr make install now, after the installation is complete, you can use it after configuration. Note: because these installation packages require gcc compilation, ensure that gcc programs are installed on linux; otherwise, no Method 3: Configure SVN vi/usr/local/apache2.2.9/conf/httpd in apache. conf ① if you see the following two sentences, the installation is successful. LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/modules. If the following sentence appears, use # comment out # LoadModule foo_module modules/mod_foo.so ② To define apache access svn Configuration: <Location/svn> DAV svn # SVNPath/opt/svndata SVNParentPath/opt/svndata AuthzSVNAccessFile/opt/svn/conf/authz. conf AuthType Basic Aut HName "Subversion repository" AuthUserFile/opt/svn/conf/passwd. conf Require valid-user </Location> 4. Configure svn ① create svn version library directory mkdir-p/opt/svndata/repos # create multiple version library directories ② create svn version library svnadmin create/opt/svndata/repos mkdir-p/opt/svndata/repos # You can create multiple version libraries ③ create a local access control file/usr/local/apache2.2.9/bin/htpasswd-c/ opt/svn/conf/passwd. conf username and enter the password. The default value is MD5-encrypted/usr/local/apache2.2.9/bin/htpasswd/opt/svn/conf/pass. Wd. conf username1 # append user ④ create a local project control file touch/opt/svn/conf/authz. conf in this example, authz. conf content: [groups] #<groupname1 >=< username1>, <username2> admin = username # [<versionLib>: projectName/directory] # @ <groupsname >=< authorities >#< username >=< authorities> [/] @ admin = rw # specify that user group members can read and write all applications in the root directory [repos: /abc/aaa] username1 = rw # specify that username1 can read and write files in the/abc/aaa directory. So far, the entire installation process has been completed! 5. test connection ① start apache/usr/local/apache2.2.9/bin/apachectl start ② open the browser and enter http: // 192.168.1.107/svn/repos # in this example, the ip address of the server is 192.168.1.107. Use the created permission username and password to log on to the server. Note: when uploading files, you may receive the following error message: Permission denied svn: Commit failed (details follow): svn: can't create directory '/opt/svndata/repos/db/transactions/0-1.txn': Permission denied this is because apache has no Permission to access the svn repository in the thread user, the two belong to different users. In this example, apache belongs to the daemon owner, while the svn repository belongs to the svn owner.: Chown-R daemon/opt/svndata/repos chmod-R 755/opt/svndata/repos restart apache: /usr/local/apache2.2.9/bin/apachectl stop/usr/local/apache2.2.9/bin/apachectl start this example is tested by the svn plug-in client of Eclipse. upload and download are normal! The server system is linux Fedora 7.

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.