<div class="gmail_quote">On Mon, Oct 18, 2010 at 2:38 PM, L. V. Lammert <span dir="ltr"><<a href="mailto:lvl@omnitec.net">lvl@omnitec.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">At 02:36 PM 10/18/2010, you wrote:<br>
>Not perfect options but, what about NFS over ssh or svn (does not<br>
>provide locking exactly, but you can check out files and lock them...ish)<br>
<br>
</div>NP for me, .. but these guys wouldn't know a NFS from a mouse. Don't<br>
need checkout either, just some way to prevent simultaneous access.<br>
</blockquote></div><div><br></div>Why don't you set up an Apache 2 instance and enable the dav module to test? I know that one of the configuration options is for the "Lock DB" which implies there is some kind of locking support.<div>
<br></div><div>Also, the question might not be, "can two clients open the file?" but "can client 2 save to the file that was opened by client 1 first?"</div><div><br></div><div>To set up webdav in apache2 on debian or Ubuntu you:</div>
<div><br></div><div>sudo apt-get install apache2</div><div>sudo a2enmod dav</div><div>sudo a2enmod dav_fs</div><div>sudo a2enmod dav_lock</div><div><br></div><div>sudo vi /etc/apache2/sites-available/davsite</div><div><br>
</div><div><div><VirtualHost *></div><div> ServerName <a href="http://davsite.something.com">davsite.something.com</a></div><div> ServerAdmin <a href="mailto:webmaster@something.com">webmaster@something.com</a></div>
<div> DocumentRoot /srv/davsite</div><div> DAVLockDB /var/lock/apache2/DAVLock</div><div> <Directory /srv/davsite></div><div> Order allow,deny</div><div> Allow from all</div><div> Dav On</div>
<div> DAVMinTimeout 600</div><div> DAVDepthInfinity On</div><div> AuthName "davsite login"</div><div> AuthType Basic</div><div> AuthUserFile /srv/davsite/.htpassword</div><div>
Require valid-user</div><div> </Directory></div><div> php_admin_value engine off</div><div></VirtualHost></div></div><div><br></div><div>(exit and save)</div><div>sudo mkdir /srv/davsite</div>
<div>sudo htpasswd -cmb /srv/davsite/.htpassword admin password</div>sudo chown -R www-data.www-data /srv/davsite<div>sudo a2ensite davsite</div><div>sudo /etc/init.d/apache2 restart</div><div><br>-- <br>Matthew Nuzum<br>
newz2000 on freenode, skype, linkedin, <a href="http://identi.ca" target="_blank">identi.ca</a> and twitter<br><br>"An investment in knowledge pays the best interest." -Benjamin Franklin <br><br>
</div>