Monthly Archives: August 2015

Configuring WebDav on IHS (CentOS)

1. What is WebDav ?

It is Web-based Distributed Authoring and Versioning, is basically a set of extensions to the HTTP that allows the users to edit, manage files on a remote server.

2. How to enable WebDav in IHS?

I will use IHS as HTTP server in my example.

  • Enable DAV modules of IHS

Locate to the IHS configuration file, which is usually in /opt/IBM/HTTPServer/conf and use an editor to open the httpd.conf and uncomment these following lines:


LoadModule dav_module modules/

LoadModule dav_fs_module modules/

Then add this line to the end of the httpd.conf to load your configuration file which will be created in next step

Include /opt/IBM/HTTPServer/conf/webdav.conf

  • Configure the DAV

Next step is to create necessary directories and the configuration file mentioned above (webdav.conf)

Make webdav directory where will be the file storage:

#mkdir -p /home/ihs/webdav

Make directory to store the lock files created by the DAV module

#mkdir -p /opt/IBM/HTTPServer/var/DAVLock

 Change the owner of the directories to the user nobody of group nobody as which the IHS instance runs

#chown nobody:nobody /home/ihs/webdav

# chown nobody:nobody /opt/IBM/HTTPServer/var/DAVLock

 Put configuration content into webdav.conf, to be something like this:
 Aias /webdav “/home/ihs/webdav”

Alias /webdav/ “/home/ihs/webdav”

<Directory /home/ihs/webdav>

Dav On

Options +Indexes

IndexOptions FancyIndexing

AddDefaultCharset UTF-8

AuthType Basic

AuthName “WebDav Server”

AuthUserFile /etc/ihs/webdav.users.pwd

<LimitExcept POST GET>

Require valid-user


Order allow,deny

Allow from all


  • Create DAV user(s)

Make sure you have path to htpasswd added to the $PATH of the environment, before executing the command below, to create a user mym

 # htpasswd -c /etc/ihs/webdav.users.pwd mym

New password:

Re-type new password:

Adding password for user mym

Restart your IHS.

 # /opt/IBM/HTTPServer/bin/apachectl restart

Now you can use a WebDav client to connect to the server

Installing docker on Mac

This post provides some quick steps to install Docker on a Mac

1. Install Virtual box

Follow instruction from this link to install Virtual box first

2. Install boot2docker and docker

Go to the official Docker site to install, or from homebrew. This instruction is for those who want to use homebrew:

Note: Make sure you have hombrew installed upfront, if not, do below steps first:

– Install Xcode from Apple App Store

– Install necessary utilities from Apple:

$xcode-select install

Once you have the utilities which include curl, run the command below:

$ruby -e "$(curl -fsSL"

Now you have brew, run:

$brew update
$brew install docker
$brew install boot2docker

3. Initiate boot2docker

$boot2docker init


$boot2docker start

3. Set necessary environments variables

$export DOCKER_HOST=tcp://

Note: The ip address above should be different for your environment. Take what `boot2docker up` command recommends. 

Troubles shooting:

  1. error in run: Failed to initialize machine “boot2docker-vm”: exit status 1

Run $boot2docker init -v for details

In many cases, it’s because permission problem. Try to delete this file /path/to/boot2docker-vm/boot2docker-vm.vbox then try again

  1. docker-machine create hangs at: Daemon not responding yet: dial tcp your_specific_ip: operation timed out

That’s Virtualbox problem, the latest test version (5.0.3) solves this issue.