0255.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Setting Up Apache Subversion on Debian/Ubuntu</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Setting Up Apache Subversion on Debian/Ubuntu">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="10/29/2022 12:25:25 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Setting Up Apache Subversion on Debian/Ubuntu</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>Installing Apache Subversion</h2>
  26. <ol>
  27. <li>Log into the Linux device</li>
  28. <li>Run the following commands in a terminal:
  29. <div class="codeBlock"># update software repositories<br />
  30. sudo apt update<br />
  31. # install apache<br />
  32. sudo apt install apache2<br />
  33. # install subversion and apache modules<br />
  34. sudo apt install subversion libapache2-mod-svn<br />
  35. # create a new subversion group<br />
  36. sudo groupadd subversion<br />
  37. # add user(s) to the new group<br />
  38. sudo addgroup i12bretro subversion<br />
  39. # create the repository directory and set permissions<br />
  40. sudo mkdir /var/lib/svn<br />
  41. sudo chown -R www-data:subversion /var/lib/svn/<br />
  42. sudo chmod -R 770 /var/lib/svn/<br />
  43. # create a test repository<br />
  44. sudo svnadmin create /var/lib/svn/Youtube_TEST<br />
  45. # enable apache modules<br />
  46. sudo a2enmod dav dav_svn<br />
  47. # create a new svn.conf file to configure the site<br />
  48. sudo nano /etc/apache2/sites-available/svn.conf</div>
  49. </li>
  50. <li>Paste the following configuration into svn.conf
  51. <p>Alias /svn /var/lib/svn<br />
  52. <br />
  53. &lt;Location /svn&gt;<br />
  54. &nbsp; &nbsp;DAV svn<br />
  55. &nbsp; &nbsp;SVNListParentPath On<br />
  56. &nbsp; &nbsp;SVNParentPath /var/lib/svn<br />
  57. &nbsp; &nbsp;Require all granted<br />
  58. &nbsp; &nbsp;AllowOverride None<br />
  59. &lt;/Location&gt;</p>
  60. </li>
  61. <li>Press CTRL+O, Enter, CTRL+X to write the changes to svn.conf</li>
  62. <li>Continue with the following commands to enable the site and restart Apache:
  63. <div class="codeBlock"># enable the svn site<br />
  64. sudo a2ensite svn<br />
  65. # restart apache2 service for the changes to take effect<br />
  66. sudo systemctl restart apache2</div>
  67. </li>
  68. <li>Open a web browser and navigate to http://DNSorIP/svn/Youtube_TEST</li>
  69. <li>A bare bones directory listing of the &quot;Youtube_TEST - Revision 0: /&quot; should be displayed</li>
  70. </ol> </div>
  71. </div>
  72. </body>
  73. </html>