123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Setting Up Apache Subversion on Debian/Ubuntu</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Install Guide,Code Repository,Apache Subversion,Apache,Apache HTTPD,Browser Based,Home Lab,Home Lab Ideas,Self-Hosted,Web Based,Web Based Tools,HTTPD,How To Host Apache Subversion On Linux,Source Code,Source Code Tracking,Source Control,Subversion,Version Control,Web Developer,Web Server,SVN Server,SVN,Repository,Debian,Ubuntu,Linux,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Setting Up Apache Subversion on Debian/Ubuntu">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="revised" content="10/29/2022 12:25:25 PM" />
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Setting Up Apache Subversion on Debian/Ubuntu</h1>
- </div>
- <div></div>
- <div id="content">
- <h2>Installing Apache Subversion</h2>
- <ol>
- <li>Log into the Linux device</li>
- <li>Run the following commands in a terminal:
- <div class="codeBlock"># update software repositories<br />
- sudo apt update<br />
- # install apache<br />
- sudo apt install apache2<br />
- # install subversion and apache modules<br />
- sudo apt install subversion libapache2-mod-svn<br />
- # create a new subversion group<br />
- sudo groupadd subversion<br />
- # add user(s) to the new group<br />
- sudo addgroup i12bretro subversion<br />
- # create the repository directory and set permissions<br />
- sudo mkdir /var/lib/svn<br />
- sudo chown -R www-data:subversion /var/lib/svn/<br />
- sudo chmod -R 770 /var/lib/svn/<br />
- # create a test repository<br />
- sudo svnadmin create /var/lib/svn/Youtube_TEST<br />
- # enable apache modules<br />
- sudo a2enmod dav dav_svn<br />
- # create a new svn.conf file to configure the site<br />
- sudo nano /etc/apache2/sites-available/svn.conf</div>
- </li>
- <li>Paste the following configuration into svn.conf
- <p>Alias /svn /var/lib/svn<br />
- <br />
- <Location /svn><br />
- DAV svn<br />
- SVNListParentPath On<br />
- SVNParentPath /var/lib/svn<br />
- Require all granted<br />
- AllowOverride None<br />
- </Location></p>
- </li>
- <li>Press CTRL+O, Enter, CTRL+X to write the changes to svn.conf</li>
- <li>Continue with the following commands to enable the site and restart Apache:
- <div class="codeBlock"># enable the svn site<br />
- sudo a2ensite svn<br />
- # restart apache2 service for the changes to take effect<br />
- sudo systemctl restart apache2</div>
- </li>
- <li>Open a web browser and navigate to http://DNSorIP/svn/Youtube_TEST</li>
- <li>A bare bones directory listing of the "Youtube_TEST - Revision 0: /" should be displayed</li>
- </ol> </div>
- </div>
- </body>
- </html>
-
|