How to install SVN onto Fedora, with Apache.
(page 2, continued)
February 4, 2008
Before modifying Apache's settings it would be a good idea to make a backup of the configuration file, in case the Apache server won't restart, we can always restore the configuration file and try again.
> cd /etc/httpd/conf.d
Start the httpd configuration gui:
> /usr/bin/system-config-httpd &
In this window set the server name to:
Add to Available Addresses :
to all addresses
Then to save these settings, hit OK. These changes will modify the file:
Restart the Apache server. There are operating system line commands for restarting the http daemon, but a GUI is just as easy, and we can keep the GUI open since we will need to restart Apache a few more times.
Scroll down, select the daemon labeled httpd, and hit restart. Hopefully Apache restarts successfully, if not, then you may need to reload the original configuration file and try again.
Next, we will need to modify subversion's configuration files.
To modify subversion's configuration files we need to edit the following:
This file was created with the installation of subversion.
The first two lines of the file should contain:
... if not, then those modules need to be installed.
First create a backup of the configuration file:
> cp subversion.conf subversion.conf.backup
Modify the Location section of the file to the following:
Notice here how the directory for the repository we created earlier using the svnadmin command is not listed above. The above settings only point to the root location of the repository, or rather its parent path.
Save these settings, and restart the Apache server.
At this point we can test the SVN server from another PC on the private LAN. We can use our favorite web browser on a windows, linux, or mac PC, and enter the following URL:
We should get a response page that looks like the following:
Revision 0: /
If you can see this, then the SVN server is running.
Next, we need to add some password protection.