"Amazon Linux" builds Subversion server for free

Source: Internet
Author: User

Amazon's EC2 server is free to try for a year. Apply here: https://aws.amazon.com/cn/free/

Try to get it into an SVN repository to save the code. According to

http://northwaygames.com/setting-up-subversion-on-amazon-ec2-for-free/

The methods described here are installed step-after-step. But to the last step http://Host number/repos/the name of the library is not successful.

I discovered it later because I didn't configure the port number for my Amazon server. Add->http TCF 80 0.0.0.0/0, click Edit, Security group

Accessed again using the browser. Just OK!

Here's how to install the configuration server:

1. Update: sudo yum update-y

2. Installing Svn:sudo Yum Install MOD_DAV_SVN

sudo yum–y install subversion

3. Edit config file: sudo vi/etc/httpd/conf.d/subversion.conf

Empty the content and enter the contents

LoadModule Dav_svn_module modules/mod_dav_svn.so

LoadModule Authz_svn_module modules/mod_authz_svn.so

<Location/repos>

DAV SVN svn

Parentpath/var/www/svn

# Limit Write permission to list of valid users.

AuthType Basic

AuthName "Authorization Realm"

authuserfile/var/www/svn-auth/passwd

Authzsvnaccessfile/var/www/svn-auth/access

Require Valid-user

</Location>

4. Create SVN folder

sudo mkdir/var/www/svn

5. Create Permissions folder: sudo mkdir/var/www/svn-auth

6. Create permission file: sudo vi/var/www/svn-auth/access

Replace it with:

[/]

User Name 1 = RW

User Name 2 = RW

7. Create a password file

sudo htpasswd-cb/var/www/svn-auth/passwd user name 1 username 1 password

sudo htpasswd-b/var/www/svn-auth/passwd user Name 2 username 2 password

8. Create an SVN library

Cd/var/www/svn

sudo svnadmin create SVN library name

9. Permissions for renaming files (do this every time you create a new library):

sudo chown-r Apache.apache/var/www/svn/var/www/svn-auth

sudo chmod 600/var/www/svn-auth/access/var/www/svn-auth/passwd

10. Turn on the Apache server:

sudo service httpd restart

11. Set the boot on

sudo chkconfig httpd on

12. If you can use the browser to open http://Your Amazon server IP/REPOS/SVN library name, you have succeeded!

"Amazon Linux" builds Subversion server for free

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.