Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Create PHPiCalendar using calendar data from Kerio MailServer
  •  
chadly

Messages: 7
Karma: 0
Send a private message to this user
Just set this up at our office and thought I would share my setup.

If you need a web based company calendar for your employees that are not neccessarily logged into Kerio MailServer you can use PHPiCalendar to display a calendar served on KMS.

You can download and review PHPiCalendar here:
http://phpicalendar.net
http://sourceforge.net/projects/phpicalendar/


1. Create Public Calendar on Kerio MailServer

2. Install PHPiCalendar
http://sourceforge.net/projects/phpicalendar/

3. Create script on server hosting PHPiCalendar to copy calendar from KMS to PHPiCalendar's "calendar" folder as a .ics file. Below is the example of script I created:
#!/bin/sh
# (Copy calendar from KMS to temp file on PHPiCalendar server)
curl http://mailserver.yourcompany.com/ical/public/CompanyCalendar -u username:password > /var/intranet/phpicalendar/calendars/temp.ics

# (Remove timezone from KMS .ics file, PHPiCalendar doesn't like it)
sed -e 's/"Pacific Time (US & Canada), Tijuana"/""/g' /var/intranet/phpicalendar/calendars/temp.ics > /var/intranet/phpicalendar/calendars/Company.ics

# (Set proper file permissions)
chown www-data /var/intranet/phpicalendar/calendars/Company.ics
chgrp www-data /var/intranet/phpicalendar/calendars/Company.ics

# (Remove temp file)
rm /var/intranet/phpicalendar/calendars/temp.ics


4. Schedule script to run periodically via a cron job (crontab -e)

NOTE: Above is for OS X or Linux box hosting PHPiCalendar. I have no idea how you would do this on a Windows box. It's unlikely you would host PHPiCalendar on a Windows box anyway.

Hope this is of some value to someone.

[Updated on: Thu, 13 April 2006 22:58]

  •  
osci

Messages: 47
Karma: 0
Send a private message to this user
BTW : for people that wants to include calendars in a Java (Web or otherwise) application, I was able to do it by using Jakarta Commons HTTP Client 3.0 (http://jakarta.apache.org/commons/httpclient/) and iCal4J (http://ical4j.sourceforge.net/), can be useful for showing the calendars in a portal.
Previous Topic: Blank emails
Next Topic: kerio mailserver problems: cannot connect remote host
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Mon Nov 20 18:02:16 CET 2017

Total time taken to generate the page: 0.00389 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.