This document explains how to display an iCalendar file as a web calendar using PHP iCalendar on an Elemental Linux Server (ELS) system.
These instructions assume that you have a working PHP-enabled web server with WebDAV configured for calendar sharing. If you do not, see the ELS Howto: Apache and PHP and the ELS Howto: Sunbird Shared Calendars before beginning this document.
Installation instructions for PHPiCalendar are available on the PHPiCalendar web site. This document will guide you through the specifics of installing it with the calendar upload directory used in the ELS Howto: Sunbird Shared Calendars.
The following example shows how you would install PHPiCalendar if your web server document root were /home/httpd.
cd /home/httpd wget http://downloads.sourceforge.net/project/phpicalendar/phpicalendar/ phpicalendar%202.4%20RC7/phpicalendar-2.4_20100615.tar.bz2 tar --no-same-owner -jxf phpicalendar-2.4_20100615.tar.bz2 ln -s phpicalendar-2.4 calendar
Configuration of PHPiCalendar is minimal. All that is needed is to set the location of your calendar file and to verify that the PHP date.timezone parameter is correct.
This example shows how you would change config.inc.php for a calendars directory of /home/httpd/upload/calendars and set the timezone for U.S. Central.
vi /home/httpd/phpicalendar-2.4/config.inc.php 'calendar_path' => '/home/httpd/upload/calendars', $list_webcals = array( # 'webcal://dimer.tamu.edu/calendars/seminars/Biochem.ics' # 'webcal://calendar.sxsw.com/iCal-EXDrB-sa-sxsw@rollerfeet.com.ics' ); vi /etc/opt/php/php.ini date.timezone = "America/Chicago"
Add an appointment to your calendar using Sunbird and publish it to your web server. Verify that the appointment appears when you open the calendar URL in a web browser.
If the appointment does not appear as expected, follow the troubleshooting steps below:
You may also want to consult the PHPiCalendar documentation wiki at http://phpicalendar.net/documentation/index.php/Main_Page