Apache Http WebDav Configurations

Here a example of base configuration for Apache Http and WebDav:

1) First of All you have to create a .htaccess file:
[ApacheRoot]/bin/htpasswd -c /usr/local/apache2/.htpasswd username

2) Create an include in your httpd.con (I prefer to create a folder and include all *.conf file) :
Include conf/include/*.conf

3) create a dav.conf file and put it in the include dir.
####      dav.conf
#Loading Mudels
LoadModule dav_module                     modules/mod_dav.so
LoadModule dav_fs_module                  modules/mod_dav_fs.so

#Dav lck and timeout
DavLockDB /var/lock/dav/DavLock
DAVMinTimeout 600

#WebDav Virtual host enabled
<VirtualHost *:80>
ServerName dav.your.domain
Alias /dav /var/www/dav
<Location /dav>
AuthType Basic
DAV On
AuthName “WebDAV”
AuthUserFile “/usr/local/apache2/.htpasswd”
Options None
Require user username
</Location>
<Location />
Order Allow,Deny
Allow from all
</Location>
</VirtualHost>
4) Restart your Apache.

5) Now you should connect with a WebDav Client.

Setup First Instance DB2

Taken from db2 Infocenter these step let you configure first db2 instance on linux.

1) Create Users for db2:

groupadd -g 999 db2iadm1
groupadd -g 998 db2fadm1
groupadd -g 997 dasadm1

2) Create users for each group:

useradd -u 1004 -g db2iadm1 -m -d /home/db2inst1 db2inst1
useradd -u 1003 -g db2fadm1 -m -d /home/db2fenc1 db2fenc1
useradd -u 1002 -g dasadm1 -m -d /home/dasusr1 dasusr1

3) Set initial password:

passwd db2inst1
passwd db2fenc1
passwd dasusr1

4) Create Instance:

/opt/ibm/db2/V9.7/instance/dascrt -u dasusr1
/opt/IBM/db2/V9.7/instance/db2icrt -a server -u db2fenc1 db2inst1
/opt/ibm/db2/V9.7/cfg/db2ln

5) Setup Comunication:

cp /etc/services /root/services.BCK
echo db2c_db2inst1 50001/tcp >> /etc/services
su – db2inst1
db2 update database manager configuration using svcename  db2inst1
db2set DB2COMM=tcpip

6) Restart DB:

db2stop
db2start