Here’s my step by step:
Install CentOS 5.2
Configure Network and Proxies as needed
I usually create a login script:
/etc/profile.d/login.shas follows:function set_proxies() { local s PROXY_ADDR="http://proxy.example.com:8000/" for s in HTTP HTTPS FTP GOPHER NEWSPOST NEWSREPLY\ NEWS NNTP SNEWSPOST SNEWSREPLY SNEWS\ WAIS FINGER CSO; do export ${s}_PROXY=${PROXY_ADDR} done for s in http https ftp; do export ${s}_proxy=${PROXY_ADDR} done } set_proxiesI installed from the DVD, so
yum updateto ensure everything is up-to-date.Get my
mod_authn_saslrpm:wget http://www.one-dash.com/blog/mod_authn_sasl-1.0.2-3.i386.rpmInstall it (this should pull down the):
yum --nogpgcheck localinstall mod_authn_sasl-1.0.2-3.i386.rpmGet my
sasl-magic-configscript:wget http://www.one-dash.com/blog/system-saslauthd-active-directory-config.sh dos2unix system-saslauthd-active-directory-config.shRun the script:
sh system-saslauthd-active-directory-config.sh example.comChange the security level:
system-config-securitylevel-tuiSet SELinux to Permissive, Customize and enable WWW and Secure WWW on the firewall
Create the sasl2 configuration for apache:
echo "pwcheck_method:saslauthd" > /usr/lib/sasl2/apache-httpd.confNow we need to install Subversion 1.5.2:
wget http://summersoft.fay.ar.us/pub/subversion/1.5.2/rhel-5/i386/subversion-1.5.2-1.i386.rpm wget http://summersoft.fay.ar.us/pub/subversion/1.5.2/rhel-5/i386/neon-0.27.2-1.i386.rpm wget http://summersoft.fay.ar.us/pub/subversion/1.5.2/rhel-5/i386/mod_dav_svn-1.5.2-1.i386.rpm yum install perl-URI rpm -i neon-0.27.2-1.i386.rpm rpm -i subversion-1.5.2-1.i386.rpm rpm -i mod_dav_svn-1.5.2-1.i386.rpmNext modify the apache conf file for our subversion repositories:
/etc/httpd/conf.d/subversion.conf# Needed to do Subversion Apache server. LoadModule dav_svn_module modules/mod_dav_svn.so # Only needed if you decide to do "per-directory" access control. #LoadModule authz_svn_module modules/mod_authz_svn.so <Location /svn> DAV svn SVNParentPath /var/www/svn <IfModule mod_authn_sasl.c> # Limit write permission to list of valid users. <LimitExcept GET PROPFIND OPTIONS REPORT> # Require SSL connection for password protection. # SSLRequireSSL AuthType Basic AuthName "EXAMPLE" AuthBasicProvider sasl AuthSaslPwcheckMethod saslauthd auxprop AuthSaslAppname apache-httpd AuthSaslRealm example Require valid-user </LimitExcept> </IfModule> </Location>Next, create the subversion projects root and restart Apache:
mkdir /var/www/svn chown -R apache.apache /var/www/svn service httpd restartAt this point you can now create a test repository:
svnadmin create /var/www/svn/test chown -R apache.apache /var/www/svn/testLet’s test if subversion is working:
svn info http://localhost/svn/test svn mkdir --username myWindowsUsername --message "a test commit" http://localhost/svn/test/trunkAt this point we should have subversion up and running.