Install apache + subversionforlinux

Source: Internet
Author: User
Apache + subversionforlinux installing SVN is an essential tool for managing the current version of the project. compared with vss and its predecessor, cvs, it has unparalleled advantages. The following are the steps for installing the apache + subversion server: 1. prepare the installation package: export apr-1.3.6.tar.gz... 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: 1. have the installation package ready: paiapr-1.3.6.tar.gz: http://apr.apache.org/ Using apr-util-1.3.8.tar.gz using subversion-1.6.3.tar.gz: http://subversion.tigris.org/ Subversion-deps-1.6.3.tar.gz restart httpd-2.2.9.tar.gz: http://httpd.apache.org/ Note: the compatibility between apach and subversion is introduced on the official website. 2. start installation: upload the above installation package to the/usr/local directory, cd/usr/local to enter the directory 1. install apr tar zxvf apr-1.3.6.tar.gz # unzip the 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-apr-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 the gcc program is installed on linux, otherwise, you cannot install it. 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: DAV svn # SVNPath/opt/svndata SVNParentPath/opt/svndata AuthzSVNAccessFile/opt/svn/conf/authz. conf AuthType Basic AuthName "Subversion repository" AuthUserFile/opt/svn/conf/passwd. conf Require valid-user 4. configure svn ① create svn version Library Directory mkdir-p/opt/svndata/repos # you can create multiple version libraries. ② 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/passwd. conf username1 # append user ④ create a local project control file touch/opt/svn/conf/authz. conf in this example, authz. conf content: [groups] # = , Admin = username #[ : ProjectName/directory] # @ = # = [/] @ Admin = rw # specify that user group members can read and write all applications in the root directory [repos:/abc/aaa] username1 = rw # specify that user username1 can read and write: the/abc/aaa directory file has been installed! 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 server ip address is 192.168.1.107. you can 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 does not have the 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. solution: 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 completely normal! The server system is linux Fedora 7.
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.