[ EN ]    [ DE ]   
kOOL Logo HomeAboutDownloadDocumentation
Rects
Download

  Webfolders through WebDAV in kOOL

As part of the fileshare module, kOOL offers webfolders done through WebDAV. In order to enable webfolders on your kOOL server, you have to enable WebDAV. Here you will find some guidelines how to do it on a GNU/Linux system with Debian (sarge or etch). It should work similarly on other systems.

All this has been tested with apache 1.3, mod_dav 1.0.3 and mod_auth_mysql 4.3.9.

For instructions for Apache2 see below.

Apache module auth_mysql

You will need the apache module mod_auth_mysql. This is needed, so the kOOL login information in the MySQL database can be applied to the webfolders.

On a Debian system you can just add the package libapache-mod-auth-mysql

Apache module dav (Apache 1.3)

Install and enable the apache module mod_dav and add the following configuration to your httpd.conf:

 

This is a general configuration done per server

<IfModule mod_dav.c>
  DAVLockDB /var/lock/DAV/apache
</IfModule>

 

This configuration can be added to a single virtual host

<IfModule mod_dav.c>
  <Directory "/path/to/kOOL/webfolders/">
    AllowOverride AuthConfig FileInfo Limit Indexes
    Options Indexes
    ForceType text/plain

    DAV On


    AuthName "Webfolders kOOL"
    AuthType Basic
    AuthMySQL_Host localhost
    AuthMySQL_User KOOL_MYSQL_USERNAME
    AuthMySQL_Password KOOL_MYSQL_PASSWORD
    Auth_MySQL_DB KOOL_MYSQL_DB
    Auth_MySQL_Password_Table ko_admin
    Auth_MySQL_Username_Field login
    Auth_MySQL_Password_Field password
    Auth_MySQL_Empty_Passwords Off
    Auth_MySQL_Encryption_Types PHP_MD5
  </Directory>
</IfModule>

 

Of course you have to substitute KOOL_MYSQL_* with the values for your server.

 

You can find more informations on mod_dav on the webpage of webdav: www.webdav.org/mod_dav

Enable webfolders support in kOOL

Now you only have to enable the use of webfolders in config/ko-config.inc:

 

define("WEBFOLDERS", TRUE);
$WEBFOLDERS_BASE = $BASE_PATH."webfolders/";
$WEBFOLDERS_BASE_HTACCESS = $BASE_PATH.".webfolders/";

Apache module dav with Apache2

Install and enable the apache2 module dav_fs which will also enable dav and add the following configuration to your virtualhost configuration:

 

This serverwide setting should be in mods-enabled/dav_fs.conf

DAVLockDB /var/lock/apache2/DAVLock

 

This configuration can be added to a single virtual host

<IfModule mod_dav.c>
  <Directory "/path/to/kOOL/webfolders/">
    AllowOverride AuthConfig FileInfo Limit Indexes
    Options Indexes
    ForceType text/plain

    DAV On


    AuthType Basic
    AuthBasicAuthoritative Off
    AuthName "Webfolders kOOL"
    AuthUserFile /dev/null
    AuthMySQLEnable On
    AuthMySQLHost localhost
    AuthMySQLUser KOOL_MYSQL_USERNAME
    AuthMySQLPassword KOOL_MYSQL_PASSWORD
    AuthMySQLDB KOOL_MYSQL_DB
    AuthMySQLUserTable ko_admin
    AuthMySQLNameField login
    AuthMySQLPasswordField password
    AuthMySQLNoPasswd Off
    AuthMySQLPwEncryption md5
    AuthMySQLAuthoritative On
  </Directory>
</IfModule>

 

Of course you have to substitute KOOL_MYSQL_* with the values for your server.

Rects
©Renzo Lauper, CH-5000 Aarau, All rights reserved