1, DownloadApache
:Http://httpd.apache.org/download.cgi
I downloaded:Httpd-2.2.8.tar.bz2,
Download the package and decompress it to the current directory. The command is as follows:
TarJxvf Httpd-2.2.8.tar.bz2
2, DownloadSubversion
:Http://subversion.tigris.org/servlets/ProjectDocumentList? Folderid = 260 & expandfolder = 74
I downloaded:Subversion-1.4.6.tar.gz
Download the package and decompress it to the current directory. The command is as follows:
TarJxvf Subversion-1.4.4.tar.bz2
As shown in:
3, Compile and installApache
GoApacheDirectory:/Root/download/tmp/httpd-2.2.8
The command is as follows:
CDHttpd-2.2.8
StartApacheRun the following command to install the Configuration:
./Configure-- Enable-Dav -- enable-so -- prefix=/Usr/local/apache2/
Compilation and Installation
Make
MakeInstall
StartApacheService
/Usr/local/apache2/bin/apachectlStart
OpenFirefoxIn the browser, enter:Http: // localhost/,The following page is displayed:
ApacheThe installation is successful.
4, Compile and installSubversion
GoApacheDirectory:/Root/download/tmp/subversion-1.4.4
The command is as follows:
CDSubversion-1.4.4
StartSubversionRun the following command to install the Configuration:
./Configure-- With-apxs=/Usr/local/apache2/bin/apxs-- Prefix=/Usr/local/Subversion-- With-Apr=/Usr/local/Apache-- With-Apr-util=/Usr/local/apache2-- With-ss -- With-zlib -- enable-maintainer-Mode
Compilation and Installation
Make
MakeInstall
Create a configuration library directory
Mkdir/Home/svnroot/Repository
Create a configuration LibrarySvn1
./Usr/local/subversion/bin/svnadminCreate /Home/svnroot/Repository/svn1
Check the configuration LibrarySvn1
Ls/Home/svnroot/Repository/svn1
Configuration LibrarySvn1Created successfully, as shown in:
ViewSvnadminVersion Information:
5, ModifyApacheConfiguration FileHttpd. conf
Directory of the file:/Usr/local/apache2/Conf
Add the content in the red rectangle.
Then, restartApacheThe command is as follows:
/Usr/local/apache2/bin/apachectlRestart
OpenFirefoxIn the browser, enter:Http: // localhost/SVN/svn1 ,The following page is displayed:
SubversionSet successfully.
6, Others
For other settings, see the relevant documentation or manual.