Subversion for Linux installation (SVN + Apache + linux)
Keywords: SVN Apache Linux Subversion
1. Install APR-1.2.7 and APR-util-1.2.7
: Http://apr.apache.org/
Tar zxvf apr-1.2.7.tar.gz
./Configure
Make
Make install
Tar zxvf apr-util-1.2.7.tar.gz
./Configure -- With-Apr =/usr/local/APR/
Make
Make install
2. Compile and install Apache.
Tar zxvf httpd-2.2.3.tar.gz
CD httpd-2.2.3
. /Configure -- prefix =/opt/Apache -- enable-Dav -- enable-so -- enable-maintainer-mode -- With-Apr =/usr/local/APR/bin/apr-1-config -- -Apr-util =/usr/local/APR/bin/apu-1-config
Make
Make install
3. Install subversion-1.4.0
Tar zxvf subversion-1.4.0.tar.gz
./Configure -- With-apxs =/opt/Apache/bin/apxs -- With-Apr =/usr/local/APR -- With-Apr-util =/usr/local/APR
Make
Make install
4. Check whether the two dynamic libraries of subversion are successfully installed.
VI/opt/Apache/CONF/httpd. conf
The following two modules indicate that the installation is successful.
Loadmodule dav_svn_module modules/mod_dav_svn.so
Loadmodule authz_svn_module modules/mod_authz_svn.so
5. Configure SVN
VI/opt/Apache/CONF/httpd. conf
The following is my Configuration:
<Location/SVN>
Dav SVN
Svnparentpath/data/SVN/Repos
Authtype basic
Authname "Subversion repository"
Authuserfile/data/SVN/passwd
Authzsvnaccessfile/data/SVN/auth
Require valid-user
</Location>
6. Create a SVN storage warehouse
# Mkdir-P/data/SVN/Repos
# Svnadmin create/data/SVN/repos/Tony. Tang
Back up previous SVN Databases
# Svnadmin dump/data/SVN/repos/Tony. Tang/>/root/Tony. Tang
Recover the backup data to the local device.
# Svnadmin load/data/SVN/repos/Tony. Tang/
7. Create a local access control file
/Opt/Apache/bin/htpasswd-C/data/SVN/passwd Clay. Li
You will be prompted to enter the password. The default password is MD5 encryption.
8. Create a local project control file
Touch/data/SVN/auth
My file content is:
[Groups]
[Hms.rd.ikang.com:/]
# Wxy = RW
Chen. Shanshan = RW
Nuo = RW
Jonathan. Sun = RW
[Php.ikang.com:/]
# Wxy = RW
Peter = RW
[Tony. Tang:/]
Tony. Tang = RW
Jonathan. Sun = RW
Clay. Li = RW
9. Install the client and access the server
Because my Apache configuration port is 88, the port number must be added when accessing the server.
Http: // 192.168.7.10: 88/SVN/Tony. Tang
Note: SVN is added during Apache configuration.
10. The installation has basically ended.
Modify the/data/SVN/repos attribute. Otherwise, the file upload may fail.
CD/data/SVN/
Chmod-r Apache. Apache Repos