If you are a developer of some sort, this tutorial is a must for versioning purposes.
Here is a brief description of this tutorial:
Follow the tutorial on Basic Net Installation…
Then we will setup a repository using XAMPP (Linux Apache Mysql PHP Package) with Subversion. I have chosen to use HTTPS: access since I am a Mac user and SSH is simply too much problems on MAC. Then I will setup NetBeans 6.5 IDE environment and svnX for MAC as a client interact with the repository. The repository will be called test-project with username james.
Ready? Let’s go….
First you will need to download XAMPP and configure for https and http access.
to setup security.
cd /opt
wget http://kent.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.6.8a.tar....
tar zxvf xampp-linux-1.6.8a.tar.gz
/opt/lampp/lampp start
/opt/lampp/lampp security
/opt/lampp/lampp restart
Browse to you server http://ip_address/ to test connection…
When prompted with username and password:
Username: lampp
Password: what you setup
After we setup the repos:
apt-get install subversion libapache2-svn
mkdir /var/svn-repos/
svnadmin create --fs-type fsfs /var/svn-repos/test-project
rm -f /var/svn-repos/test-project/conf/passwd
touch /var/svn-repos/test-project/conf/passwd
htpasswd /var/svn-repos/test-project/conf/passwd james
groupadd subversion
chmod -R 777 /var/svn-repos/*
Modules needed for web access:
cp /usr/lib/apache2/modules/mod_authz_svn.so /opt/lampp/modules/
cp /usr/lib/apache2/modules/mod_dav_svn.so /opt/lampp/modules/
nano /opt/lampp/etc/httpd.conf
Add these lines after LoadModule ssl_module modules/mod_ssl.so:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
Then go to the end and add:
# Subversion repositories
<Location /test-project>
DAV svn
SVNPath /var/svn-repos/test-project
AuthType Basic
AuthName “Subversion Repository”
AuthUserFile /var/svn-repos/test-project/conf/passwd
Require valid-user
SSLRequireSSL
</Location>
Restart LAMPP
/opt/lampp/lampp restart
Let’s make a test
mkdir ~/TEMP/
echo "testing svn" > ~/TEMP/testing.txt
svn import -m "importing test over svn" ~/TEMP/ svn+ssh://localhost/var/svn-repos/test-project/trunk
svn co svn+ssh://localhost/var/svn-repos/test-project/trunk testcheckout
svnlook tree /var/svn-repos/test-project/
I followed these most of the instructions to try to add SVN support to a Xampp install I already have working on my Ubuntu 10.10 box.
Every was good till I tried to restart Lampp. I got a EFLCLASS64 error on mod_dav_svn.so and I’m new enough to linux that I dont know what I need to do to fix this.
Any help would be great.
Thanks
Hello,
You must use 32bit svn modules.
Good article,
Impossible to apply this tutoriel, I have this error :
root@serveur:~# svn import -m “importing test over svn” ~/TEMP/ svn+ssh://localhost/var/svn-repos/textes/trunk
svn: To better debug SSH connection problems, remove the -q option from ‘ssh’ in the [tunnels] section of your Subversion configuration file.
svn: La connexion réseau a été fermée de façon inattendue
I have the same problem as Brian. I hope someone could help us.
Thanks.