Bitnami Subversion Stack for Microsoft Azure Subversion enables globally distributed software development teams to efficiently version and share source code with low administrative overhead. Filename: bitnami subversion stack download Date added: Size: 36.11 MB Type of compression: zip Total downloads: 8929 By: vertkitex File checked: Kaspersky Download speed: 10 Mb/s Time: AUTHOR: stilfoodta bitnami subversion stack download BitNami Redmine Stack was configured using. Or you can download the latest repository version.
Create a Subversion repository
Connect to your server via SSH and execute the following commands to create the repositories directory at /opt/bitnami/repositories and then a new Subversion repository named myapp:
Configure the Subversion repository URL
If no prefix is set in the Subversion scripts, specify the full path to the repository - for instance, svn://SERVER-IP/home/user/repository. In case this is not possible, add the repository path to the Subversion control script.
Bitnami Crm
Edit the file /opt/bitnami/subversion/scripts/ctl.sh and update the svnserve command line with an additional –root parameter for the repository path. For example:
Restart the Subversion server.
Browse a Subversion repository using a Web browser
To browse the Subversion repository using a Web browser, follow the steps below:
Update the Apache configuration file at /opt/bitnami/apache2/conf/httpd.conf to load the following modules:
In the same file, verify the endpoint URL and path for your Subversion repository. For example, the directives below will let you view the default repository at /opt/bitnami/repository by browsing to http://SERVER-IP/repository.
Restart Apache:
You should now be able to checkout the repository using a tool like TortoiseSVN. Simply enter the URL as http://SERVER-IP/repository as the repository checkout URL in the TortoiseSVN interface, as shown below.
Enable access over HTTPS
You can also access the repository over HTTPS if you have configured the Apache SSL certificate for your server. The following error can occur if the hostname reported by the server does not match the hostname in the SSL certificate. Make sure your server configuration uses the correct ServerName value.
Enable commits over HTTP(S)
For security reasons, the default configuration does not allow users to commit changes to the repositories over HTTP or HTTPS. To permit this, change the permissions of your repository directory so that the Apache user is able to write to it.
Run the following command, assuming your repository is located at the default location of /opt/bitnami/repository:
IMPORTANT: Making this change will allow any user to commit changes to your repository. To avoid unauthorized commits and possible data loss, configure basic authentication for your repository as discussed in the next section
Upgrade Bitnami Stack
You should now be able to commit changes to the repository using a tool like TortoiseSVN, as shown below.
Configure basic authentication for a Subversion repository
Once your repository is accessible over HTTP(s), it is recommended that you protect it from unauthorized access by configuring authentication for different users. To do this, follow the steps below:
Update the Apache configuration file at /opt/bitnami/apache2/conf/httpd.conf and add the highlighted directives below.
With this configuration, repository access is only available to those users listed in the /opt/bitnami/repository/users file and they will need to authenticate themselves before gaining access. Note that you should update the path to the file based on the actual location of your repository.
Create the /opt/bitnami/repository/users file and add a user account named myuser to it using the following command. You will be prompted to enter a password for the user account. Note that you should update the path to the file based on the actual location of your repository.
Repeat this step to add more users, omitting the -c argument on subsequent invocations. For example:
Restart the Apache server.
If you now attempt to browse to the repository or access it using TortoiseSVN, you will be prompted for a user name and password, as shown below:
Enable anonymous browsing
If you want your repository readable but not editable by any other user, perform the steps above but changing the line
to
Enable HTTPS access only
If you only want to only allow access through HTTPS, not HTTP, you should add SSLRequireSSL to the directives described above:
Configure SSH access to a Subversion repository
To create a repository that allows access remotely over SSH, follow these steps:
Connect to your server via SSH and execute the following commands to create the repositories directory at /opt/bitnami/repositories and then a new Subversion repository named myapp:
Assign your repository to a Redmine project. In Redmine, navigate to the project “Settings -> Repository” menu and add the following value in the “URL” field (username and password are not necessary):
Check if you have Subversion binaries in the system path even in the non-interactive SSH session. Execute the following command:
Remember to replace KEYFILE in the previous commands with the path to your private key file, and SERVER-IP with the public IP address or hostname of your server.
If you receive a “Command not found” error, update the /home/bitnami/.bashrc file and move all Bitnami path configuration from the bottom of this file to the top, above this line
Check out the repository now and start adding and committing new files. The repository should be available remotely via the following URL. The Subversion client should be configured to use the username bitnami and corresponding SSH key:
Remember to replace xyz.bitnamiapp.com with the public IP address or hostname of your server.
To add a file to your repository, execute the following commands on your local host. Remember to replace bitnami-hosting.pem in the previous commands with the path to your private key file, and xyz.bitnamiapp.com with the public IP address or hostname of your server.
Enable Subversion post-commit notifications
To configure a Subversion repository to send emails via SMTP with the commit log, follow these steps:
Download the latest source code from Subversion and copy the hooks directory into the /opt/bitnami/subversion directory:
Copy the example mailer.conf file:
Configure the SMTP mail settings in the mailer.conf file. Here is an example for a Gmail account:
Configure your post-commit hook script to use the mailer.py and mailer.conf files. The location of your post-commit script depends on the location of your repository. Edit the /opt/bitnami/repositories/REPOSITORY-NAME/hooks/post-commit.tmpl file and replace the last line with the following one:
In case the /opt/bitnami/python directory does not exist, use the system’s Python binary, usually at /usr/bin/python.
Enable the post-commit hook by renaming the post-commit script and removing the .tmpl extension:
To test it, change a file and commit the changes. In case of an error, the error message will be displayed after the commit.