- Subversion
- Apache Web server
- Ubuntu (Soon i'll publish for Windows)
Install Apache server on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install apache2 |
make sure your Apache server is up and running
Install subversion on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install subversion |
The above command installs subversion but in order to access your subversion via internet you need to configure your subversion with Apache. Subversion provides module to interact with Apache such as libapache2-svn, install the package using the following command:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libapache2-svn |
Subversion configuration
Create a subversion folder to hold all the repositories.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mkdir /var/lib/svn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gedit /etc/apache2/mods-enabled/dav_svn.conf |
uncomment the following line in the dav_svn.conf file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<location svn="svn"> | |
DAV svn | |
SVNParentPath /var/lib/svn | |
AuthType Basic | |
AuthName "Subversion Repository" | |
AuthUserFile /etc/apache2/dav_svn.passwd | |
<location> |
Once the configuration finished. Create the user craditial to login to the subversion with the following command:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd rambo |
Restart the Apache server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /etc/init.d/apache2 restart |
Create a simple subversion repository project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svnadmin create /var/lib/svn/myproject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo chown -R www-data:www-data /var/lib/svn/myproject |
So far you can access your subversion repository in the local network but you also can make it available to the wide area network with the domestic router and internet connection. I will be posting about it soon as possible.
No comments:
Post a Comment