Create an iCalendar server with debian 5.0 lenny

First you need an working apache2 webserver with mod “dav_fs”. If you want iCal over SSL you need a configurated “mod_ssl” on your apache2 webserver.

a2enmod dav_fs

Next step is the apache configuration:

Insert this in your “virtualhost” configuration.

Alias /iCalendar /your/path/to/iCalendar
<location /iCalendar>
    DAV On
</location>

Now you can create a new calendar with sunbird for example. Just add a new calendar, select “Network calendar” and “iCalendar (ICS)” and insert the URL to your server: “http://your.server.address/iCalendar/myCalendar.ics” (Or use https)

You can protect your calendar directory with username and password, too.

Example with mysql authentification:

Alias /iCalendar /your/path/to/iCalendar
<location /iCalendar>
    DAV On
    AuthBasicAuthoritative Off
    AuthUserFile /dev/null
    AuthMySQL On
    AuthName "Calendar"
    AuthType Basic
    Auth_MySQL_Host localhost
    Auth_MySQL_User DB_USER
    Auth_MySQL_Password DB_PASS
    AuthMySQL_DB DB_NAME
    AuthMySQL_Password_Table DB_TABLE
    Auth_MySQL_Username_Field DB_USER_FIELD
    Auth_MySQL_Password_Field DB_PASSWORD_FIELD
    Auth_MySQL_Empty_Passwords Off
    Auth_MySQL_Encryption_Types Crypt_DES
    Auth_MySQL_Authoritative On
    require valid-user
</location>

Example with password file:

Alias /iCalendar /your/path/to/iCalendar
<location /iCalendar>
    DAV On
    AuthName "Calendar"
    AuthUserFile "/your/path/to/.htpasswd"
    require valid-user
</location>

Creating password file:

htpasswd -c /your/path/to/.htpasswd MY_USER

Now you have to change the URL to your calendar in sunbird to “http://MY_USER:MY_PASSWORD@your.server.address/iCalendar/myCalendar.ics”.

If you want an additional webinterface to your calendar you should take a look at http://www.php-calendar.com

This Post Has One Comment

  1. I appreciate, cause I found just what I was looking for. You have ended my 4 day long hunt! God Bless you man. Have a nice day. Bye kaddkcdkcfae

Schreibe einen Kommentar zu Johna755 Antworten abbrechen

eMail-Benachrichtigung bei weiteren Kommentaren.
Auch möglich: Abo ohne Kommentar.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.